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 **DEPRECATED, all options are available in the + * `options` parameter.** 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, + }); + this.credentialSourceType = 'executable'; + } + /** + * 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; + + +/***/ }), + +/***/ 18941: +/***/ ((__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__(44782); +const executable_response_1 = __nccwpck_require__(8749); +const childProcess = __nccwpck_require__(32081); +const fs = __nccwpck_require__(57147); +/** + * 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; + + +/***/ }), + +/***/ 98790: +/***/ ((__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__(3936); +const querystring_1 = __nccwpck_require__(63477); +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(opts); + 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); + } + async fetchIdToken(targetAudience) { + const res = await this.transporter.request({ + ...UserRefreshClient.RETRY_CONFIG, + url: this.endpoints.oauth2TokenUrl, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + method: 'POST', + data: (0, querystring_1.stringify)({ + client_id: this._clientId, + client_secret: this._clientSecret, + grant_type: 'refresh_token', + refresh_token: this._refreshToken, + target_audience: targetAudience, + }), + }); + return res.data.id_token; + } + /** + * 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; + this.universeDomain = json.universe_domain || this.universeDomain; + } + 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; + + +/***/ }), + +/***/ 86308: +/***/ ((__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__(59555); +const querystring = __nccwpck_require__(63477); +const transporters_1 = __nccwpck_require__(72649); +const oauth2common_1 = __nccwpck_require__(19510); +/** + * 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 = { + ...StsCredentials.RETRY_CONFIG, + url: this.tokenExchangeEndpoint.toString(), + 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; + + +/***/ }), + +/***/ 7428: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UrlSubjectTokenSupplier = void 0; +/** + * Internal subject token supplier implementation used when a URL + * is configured in the credential configuration used to build an {@link IdentityPoolClient} + */ +class UrlSubjectTokenSupplier { + /** + * Instantiates a URL subject token supplier. + * @param opts The URL subject token supplier options to build the supplier with. + */ + constructor(opts) { + this.url = opts.url; + this.formatType = opts.formatType; + this.subjectTokenFieldName = opts.subjectTokenFieldName; + this.headers = opts.headers; + this.additionalGaxiosOptions = opts.additionalGaxiosOptions; + } + /** + * Sends a GET request to the URL provided in the constructor and resolves + * with the returned external subject token. + * @param context {@link ExternalAccountSupplierContext} from the calling + * {@link IdentityPoolClient}, contains the requested audience and subject + * token type for the external account identity. Not used. + */ + async getSubjectToken(context) { + const opts = { + ...this.additionalGaxiosOptions, + url: this.url, + method: 'GET', + headers: this.headers, + responseType: this.formatType, + }; + let subjectToken; + if (this.formatType === 'text') { + const response = await context.transporter.request(opts); + subjectToken = response.data; + } + else if (this.formatType === 'json' && this.subjectTokenFieldName) { + const response = await context.transporter.request(opts); + subjectToken = response.data[this.subjectTokenFieldName]; + } + if (!subjectToken) { + throw new Error('Unable to parse the subject_token from the credential_source URL'); + } + return subjectToken; + } +} +exports.UrlSubjectTokenSupplier = UrlSubjectTokenSupplier; + + +/***/ }), + +/***/ 14693: +/***/ ((__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__(26463); +const crypto_1 = __nccwpck_require__(78043); +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: + 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' }, + }; + 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' }, + }; + 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)); + const result = new TextDecoder().decode(uint8array); + return result; + } + encodeBase64StringUtf8(text) { + 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: + 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)); + 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; + + +/***/ }), + +/***/ 78043: +/***/ ((__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.createCrypto = createCrypto; +exports.hasBrowserCrypto = hasBrowserCrypto; +exports.fromArrayBufferToHex = fromArrayBufferToHex; +const crypto_1 = __nccwpck_require__(14693); +const crypto_2 = __nccwpck_require__(30757); +function createCrypto() { + if (hasBrowserCrypto()) { + return new crypto_1.BrowserCrypto(); + } + return new crypto_2.NodeCrypto(); +} +function hasBrowserCrypto() { + return (typeof window !== 'undefined' && + typeof window.crypto !== 'undefined' && + typeof window.crypto.subtle !== 'undefined'); +} +/** + * 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(''); +} + + +/***/ }), + +/***/ 30757: +/***/ ((__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__(6113); +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('RSA-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); +} + + +/***/ }), + +/***/ 20810: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleAuth = exports.auth = exports.DefaultTransporter = exports.PassThroughClient = exports.ExecutableError = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsRequestSigner = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.ClientAuthentication = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.DEFAULT_UNIVERSE = exports.AuthClient = exports.gaxios = exports.gcpMetadata = 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__(20695); +Object.defineProperty(exports, "GoogleAuth", ({ enumerable: true, get: function () { return googleauth_1.GoogleAuth; } })); +// Export common deps to ensure types/instances are the exact match. Useful +// for consistently configuring the library across versions. +exports.gcpMetadata = __nccwpck_require__(3563); +exports.gaxios = __nccwpck_require__(59555); +var authclient_1 = __nccwpck_require__(44627); +Object.defineProperty(exports, "AuthClient", ({ enumerable: true, get: function () { return authclient_1.AuthClient; } })); +Object.defineProperty(exports, "DEFAULT_UNIVERSE", ({ enumerable: true, get: function () { return authclient_1.DEFAULT_UNIVERSE; } })); +var computeclient_1 = __nccwpck_require__(96875); +Object.defineProperty(exports, "Compute", ({ enumerable: true, get: function () { return computeclient_1.Compute; } })); +var envDetect_1 = __nccwpck_require__(21380); +Object.defineProperty(exports, "GCPEnv", ({ enumerable: true, get: function () { return envDetect_1.GCPEnv; } })); +var iam_1 = __nccwpck_require__(39735); +Object.defineProperty(exports, "IAMAuth", ({ enumerable: true, get: function () { return iam_1.IAMAuth; } })); +var idtokenclient_1 = __nccwpck_require__(80298); +Object.defineProperty(exports, "IdTokenClient", ({ enumerable: true, get: function () { return idtokenclient_1.IdTokenClient; } })); +var jwtaccess_1 = __nccwpck_require__(68740); +Object.defineProperty(exports, "JWTAccess", ({ enumerable: true, get: function () { return jwtaccess_1.JWTAccess; } })); +var jwtclient_1 = __nccwpck_require__(13959); +Object.defineProperty(exports, "JWT", ({ enumerable: true, get: function () { return jwtclient_1.JWT; } })); +var impersonated_1 = __nccwpck_require__(91103); +Object.defineProperty(exports, "Impersonated", ({ enumerable: true, get: function () { return impersonated_1.Impersonated; } })); +var oauth2client_1 = __nccwpck_require__(3936); +Object.defineProperty(exports, "CodeChallengeMethod", ({ enumerable: true, get: function () { return oauth2client_1.CodeChallengeMethod; } })); +Object.defineProperty(exports, "OAuth2Client", ({ enumerable: true, get: function () { return oauth2client_1.OAuth2Client; } })); +Object.defineProperty(exports, "ClientAuthentication", ({ enumerable: true, get: function () { return oauth2client_1.ClientAuthentication; } })); +var loginticket_1 = __nccwpck_require__(74524); +Object.defineProperty(exports, "LoginTicket", ({ enumerable: true, get: function () { return loginticket_1.LoginTicket; } })); +var refreshclient_1 = __nccwpck_require__(98790); +Object.defineProperty(exports, "UserRefreshClient", ({ enumerable: true, get: function () { return refreshclient_1.UserRefreshClient; } })); +var awsclient_1 = __nccwpck_require__(71569); +Object.defineProperty(exports, "AwsClient", ({ enumerable: true, get: function () { return awsclient_1.AwsClient; } })); +var awsrequestsigner_1 = __nccwpck_require__(1754); +Object.defineProperty(exports, "AwsRequestSigner", ({ enumerable: true, get: function () { return awsrequestsigner_1.AwsRequestSigner; } })); +var identitypoolclient_1 = __nccwpck_require__(20117); +Object.defineProperty(exports, "IdentityPoolClient", ({ enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } })); +var externalclient_1 = __nccwpck_require__(94381); +Object.defineProperty(exports, "ExternalAccountClient", ({ enumerable: true, get: function () { return externalclient_1.ExternalAccountClient; } })); +var baseexternalclient_1 = __nccwpck_require__(40810); +Object.defineProperty(exports, "BaseExternalAccountClient", ({ enumerable: true, get: function () { return baseexternalclient_1.BaseExternalAccountClient; } })); +var downscopedclient_1 = __nccwpck_require__(6270); +Object.defineProperty(exports, "DownscopedClient", ({ enumerable: true, get: function () { return downscopedclient_1.DownscopedClient; } })); +var pluggable_auth_client_1 = __nccwpck_require__(44782); +Object.defineProperty(exports, "PluggableAuthClient", ({ enumerable: true, get: function () { return pluggable_auth_client_1.PluggableAuthClient; } })); +Object.defineProperty(exports, "ExecutableError", ({ enumerable: true, get: function () { return pluggable_auth_client_1.ExecutableError; } })); +var passthrough_1 = __nccwpck_require__(32460); +Object.defineProperty(exports, "PassThroughClient", ({ enumerable: true, get: function () { return passthrough_1.PassThroughClient; } })); +var transporters_1 = __nccwpck_require__(72649); +Object.defineProperty(exports, "DefaultTransporter", ({ enumerable: true, get: function () { return transporters_1.DefaultTransporter; } })); +const auth = new googleauth_1.GoogleAuth(); +exports.auth = auth; + + +/***/ }), + +/***/ 16608: +/***/ ((__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 = validate; +// 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); + } + } +} + + +/***/ }), + +/***/ 72649: +/***/ ((__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__(59555); +const options_1 = __nccwpck_require__(16608); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(51402); +const PRODUCT_NAME = 'google-api-nodejs-client'; +class DefaultTransporter { + constructor() { + /** + * A configurable, replacable `Gaxios` instance. + */ + this.instance = new gaxios_1.Gaxios(); + } + /** + * 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: + if (!opts.headers['x-goog-api-client']) { + const nodeVersion = process.version.replace(/^v/, ''); + opts.headers['x-goog-api-client'] = `gl-node/${nodeVersion}`; + } + } + return opts; + } + /** + * Makes a request using Gaxios with given options. + * @param opts GaxiosOptions options. + * @param callback optional callback that contains GaxiosResponse object. + * @return GaxiosPromise, assuming no callback is passed. + */ + request(opts) { + // ensure the user isn't passing in request-style options + opts = this.configure(opts); + (0, options_1.validate)(opts); + return this.instance.request(opts).catch(e => { + throw this.processError(e); + }); + } + get defaults() { + return this.instance.defaults; + } + set defaults(opts) { + this.instance.defaults = opts; + } + /** + * 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.status = res.status; + } + 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; + } + } + else if (res && res.status >= 400) { + // Consider all 4xx and 5xx responses errors. + err.message = body; + err.status = res.status; + } + return err; + } +} +exports.DefaultTransporter = DefaultTransporter; +/** + * Default user agent. + */ +DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; + + +/***/ }), + +/***/ 68905: +/***/ (function(__unused_webpack_module, exports) { + +"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. +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var _LRUCache_instances, _LRUCache_cache, _LRUCache_moveToEnd, _LRUCache_evict; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LRUCache = void 0; +exports.snakeToCamel = snakeToCamel; +exports.originalOrCamelOptions = originalOrCamelOptions; +/** + * Returns the camel case of a provided string. + * + * @remarks + * + * Match any `_` and not `_` pair, then return the uppercase of the not `_` + * character. + * + * @internal + * + * @param str the string to convert + * @returns the camelCase'd string + */ +function snakeToCamel(str) { + return str.replace(/([_][^_])/g, match => match.slice(1).toUpperCase()); +} +/** + * Get the value of `obj[key]` or `obj[camelCaseKey]`, with a preference + * for original, non-camelCase key. + * + * @param obj object to lookup a value in + * @returns a `get` function for getting `obj[key || snakeKey]`, if available + */ +function originalOrCamelOptions(obj) { + /** + * + * @param key an index of object, preferably snake_case + * @returns the value `obj[key || snakeKey]`, if available + */ + function get(key) { + var _a; + const o = (obj || {}); + return (_a = o[key]) !== null && _a !== void 0 ? _a : o[snakeToCamel(key)]; + } + return { get }; +} +/** + * A simple LRU cache utility. + * Not meant for external usage. + * + * @experimental + * @internal + */ +class LRUCache { + constructor(options) { + _LRUCache_instances.add(this); + /** + * Maps are in order. Thus, the older item is the first item. + * + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map} + */ + _LRUCache_cache.set(this, new Map()); + this.capacity = options.capacity; + this.maxAge = options.maxAge; + } + /** + * Add an item to the cache. + * + * @param key the key to upsert + * @param value the value of the key + */ + set(key, value) { + __classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_moveToEnd).call(this, key, value); + __classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_evict).call(this); + } + /** + * Get an item from the cache. + * + * @param key the key to retrieve + */ + get(key) { + const item = __classPrivateFieldGet(this, _LRUCache_cache, "f").get(key); + if (!item) + return; + __classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_moveToEnd).call(this, key, item.value); + __classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_evict).call(this); + return item.value; + } +} +exports.LRUCache = LRUCache; +_LRUCache_cache = new WeakMap(), _LRUCache_instances = new WeakSet(), _LRUCache_moveToEnd = function _LRUCache_moveToEnd(key, value) { + __classPrivateFieldGet(this, _LRUCache_cache, "f").delete(key); + __classPrivateFieldGet(this, _LRUCache_cache, "f").set(key, { + value, + lastAccessed: Date.now(), + }); +}, _LRUCache_evict = function _LRUCache_evict() { + const cutoffDate = this.maxAge ? Date.now() - this.maxAge : 0; + /** + * Because we know Maps are in order, this item is both the + * last item in the list (capacity) and oldest (maxAge). + */ + let oldestItem = __classPrivateFieldGet(this, _LRUCache_cache, "f").entries().next(); + while (!oldestItem.done && + (__classPrivateFieldGet(this, _LRUCache_cache, "f").size > this.capacity || // too many + oldestItem.value[1].lastAccessed < cutoffDate) // too old + ) { + __classPrivateFieldGet(this, _LRUCache_cache, "f").delete(oldestItem.value[0]); + oldestItem = __classPrivateFieldGet(this, _LRUCache_cache, "f").entries().next(); + } +}; + + +/***/ }), + +/***/ 12036: +/***/ ((__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 + +/***/ }), + +/***/ 58971: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(20810); +const qs = __nccwpck_require__(22760); +const stream = __nccwpck_require__(12781); +const urlTemplate = __nccwpck_require__(30464); +const uuid = __nccwpck_require__(76380); +const extend = __nccwpck_require__(38171); +const isbrowser_1 = __nccwpck_require__(78322); +const h2 = __nccwpck_require__(55421); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(73396); +// 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, _b, _c, _d; + // 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, options.apiVersion); + 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) { + let url = options.url; + if (typeof url === 'object') { + url = url.toString(); + } + options.url = urlTemplate.parse(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 + // Determine TPC universe + if (options.universeDomain && + options.universe_domain && + options.universeDomain !== options.universe_domain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object' + ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] + : undefined; + const universeDomain = (_d = (_c = (_b = options.universeDomain) !== null && _b !== void 0 ? _b : options.universe_domain) !== null && _c !== void 0 ? _c : universeDomainEnvVar) !== null && _d !== void 0 ? _d : 'googleapis.com'; + // Update URL to point to the given TPC universe + if (universeDomain !== 'googleapis.com' && options.url) { + const url = new URL(options.url); + if (url.hostname.endsWith('.googleapis.com')) { + url.hostname = url.hostname.replace(/googleapis\.com$/, universeDomain); + options.url = url.toString(); + } + } + // 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') { + // Validate TPC universe + const universeFromAuth = typeof authClient.getUniverseDomain === 'function' + ? await authClient.getUniverseDomain() + : undefined; + if (universeFromAuth && universeDomain !== universeFromAuth) { + throw new Error(`The configured universe domain (${universeDomain}) does not match the universe domain found in the credentials (${universeFromAuth}). ` + + "If you haven't configured the universe domain explicitly, googleapis.com is the default."); + } + 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, apiVersion) { + // 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}`; + } + if (apiVersion) { + headers['x-goog-api-version'] = apiVersion; + } +} +//# sourceMappingURL=apirequest.js.map + +/***/ }), + +/***/ 565: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 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__(20810); +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); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + 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 + +/***/ }), + +/***/ 87258: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(57147); +const google_auth_library_1 = __nccwpck_require__(20810); +const resolve = __nccwpck_require__(57310); +const util = __nccwpck_require__(73837); +const apirequest_1 = __nccwpck_require__(58971); +const endpoint_1 = __nccwpck_require__(84025); +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 + +/***/ }), + +/***/ 84025: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(58971); +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, + apiVersion: method.apiVersion, + }, + 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 + +/***/ }), + +/***/ 55421: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(85158); +const zlib = __nccwpck_require__(59796); +const url_1 = __nccwpck_require__(57310); +const qs = __nccwpck_require__(22760); +const extend = __nccwpck_require__(38171); +const stream_1 = __nccwpck_require__(12781); +const util = __nccwpck_require__(73837); +const process = __nccwpck_require__(77282); +const common_1 = __nccwpck_require__(66129); +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 + +/***/ }), + +/***/ 40524: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(20810); +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__(59555); +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__(12036); +Object.defineProperty(exports, "getAPI", ({ enumerable: true, get: function () { return apiIndex_1.getAPI; } })); +var apirequest_1 = __nccwpck_require__(58971); +Object.defineProperty(exports, "createAPIRequest", ({ enumerable: true, get: function () { return apirequest_1.createAPIRequest; } })); +var authplus_1 = __nccwpck_require__(565); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return authplus_1.AuthPlus; } })); +var discovery_1 = __nccwpck_require__(87258); +Object.defineProperty(exports, "Discovery", ({ enumerable: true, get: function () { return discovery_1.Discovery; } })); +var endpoint_1 = __nccwpck_require__(84025); +Object.defineProperty(exports, "Endpoint", ({ enumerable: true, get: function () { return endpoint_1.Endpoint; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 78322: +/***/ ((__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 + +/***/ }), + +/***/ 76380: +/***/ ((__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__(49513)); + +var _v2 = _interopRequireDefault(__nccwpck_require__(86274)); + +var _v3 = _interopRequireDefault(__nccwpck_require__(20318)); + +var _v4 = _interopRequireDefault(__nccwpck_require__(4753)); + +var _nil = _interopRequireDefault(__nccwpck_require__(14272)); + +var _version = _interopRequireDefault(__nccwpck_require__(32127)); + +var _validate = _interopRequireDefault(__nccwpck_require__(46864)); + +var _stringify = _interopRequireDefault(__nccwpck_require__(28353)); + +var _parse = _interopRequireDefault(__nccwpck_require__(52305)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/***/ }), + +/***/ 4707: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +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; + +/***/ }), + +/***/ 36265: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var _default = { + randomUUID: _crypto.default.randomUUID +}; +exports["default"] = _default; + +/***/ }), + +/***/ 14272: +/***/ ((__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; + +/***/ }), + +/***/ 52305: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(46864)); + +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; + +/***/ }), + +/***/ 87519: +/***/ ((__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; + +/***/ }), + +/***/ 13405: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = rng; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +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); +} + +/***/ }), + +/***/ 68523: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +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; + +/***/ }), + +/***/ 28353: +/***/ ((__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__(46864)); + +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]]; +} + +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; + +/***/ }), + +/***/ 49513: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _rng = _interopRequireDefault(__nccwpck_require__(13405)); + +var _stringify = __nccwpck_require__(28353); + +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; + +/***/ }), + +/***/ 86274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(82565)); + +var _md = _interopRequireDefault(__nccwpck_require__(4707)); + +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; + +/***/ }), + +/***/ 82565: +/***/ ((__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__(28353); + +var _parse = _interopRequireDefault(__nccwpck_require__(52305)); + +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; +} + +/***/ }), + +/***/ 20318: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _native = _interopRequireDefault(__nccwpck_require__(36265)); + +var _rng = _interopRequireDefault(__nccwpck_require__(13405)); + +var _stringify = __nccwpck_require__(28353); + +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; + +/***/ }), + +/***/ 4753: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(82565)); + +var _sha = _interopRequireDefault(__nccwpck_require__(68523)); + +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; + +/***/ }), + +/***/ 46864: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _regex = _interopRequireDefault(__nccwpck_require__(87519)); + +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; + +/***/ }), + +/***/ 32127: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(46864)); + +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; + +/***/ }), + +/***/ 97913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(52957); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 52957: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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 = abusiveexperiencereport_v1 = {})); + + +/***/ }), + +/***/ 57234: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(16214); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 16214: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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 = acceleratedmobilepageurl_v1 = {})); + + +/***/ }), + +/***/ 11959: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(10167); +Object.defineProperty(exports, "accessapproval_v1", ({ enumerable: true, get: function () { return v1_1.accessapproval_v1; } })); +const v1beta1_1 = __nccwpck_require__(28967); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 10167: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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 = accessapproval_v1 = {})); + + +/***/ }), + +/***/ 28967: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = accessapproval_v1beta1 = {})); + + +/***/ }), + +/***/ 1747: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(94531); +Object.defineProperty(exports, "accesscontextmanager_v1", ({ enumerable: true, get: function () { return v1_1.accesscontextmanager_v1; } })); +const v1beta_1 = __nccwpck_require__(68224); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 94531: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var accesscontextmanager_v1; +(function (accesscontextmanager_v1) { + /** + * Access Context Manager API + * + * An API for setting attribute based access control to requests to Google Cloud services. *Warning:* Do not mix *v1alpha* and *v1* API usage in the same access policy. The v1alpha API supports new Access Context Manager features, which may have different attributes or behaviors that are not supported by v1. The practice of mixed API usage within a policy may result in the inability to update that policy, including any access levels or service perimeters belonging to it. It is not recommended to use both v1 and v1alpha for modifying policies with critical service perimeters. Modifications using v1alpha should be limited to policies with non-production/non-critical service perimeters. + * + * @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); + this.services = new Resource$Services(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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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; + class Resource$Services { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/services/{name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accesscontextmanager_v1.Resource$Services = Resource$Services; +})(accesscontextmanager_v1 || (exports.accesscontextmanager_v1 = accesscontextmanager_v1 = {})); + + +/***/ }), + +/***/ 68224: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = accesscontextmanager_v1beta = {})); + + +/***/ }), + +/***/ 73616: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(55125); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 55125: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = acmedns_v1 = {})); + + +/***/ }), + +/***/ 84473: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.addressvalidation_v1 = exports.auth = exports.addressvalidation = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(72048); +Object.defineProperty(exports, "addressvalidation_v1", ({ enumerable: true, get: function () { return v1_1.addressvalidation_v1; } })); +exports.VERSIONS = { + v1: v1_1.addressvalidation_v1.Addressvalidation, +}; +function addressvalidation(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('addressvalidation', versionOrOptions, exports.VERSIONS, this); +} +exports.addressvalidation = addressvalidation; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 72048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.addressvalidation_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var addressvalidation_v1; +(function (addressvalidation_v1) { + /** + * Address Validation API + * + * The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const addressvalidation = google.addressvalidation('v1'); + * ``` + */ + class Addressvalidation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v1 = new Resource$V1(this.context); + } + } + addressvalidation_v1.Addressvalidation = Addressvalidation; + class Resource$V1 { + constructor(context) { + this.context = context; + } + provideValidationFeedback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://addressvalidation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1:provideValidationFeedback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validateAddress(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://addressvalidation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1:validateAddress').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + addressvalidation_v1.Resource$V1 = Resource$V1; +})(addressvalidation_v1 || (exports.addressvalidation_v1 = addressvalidation_v1 = {})); + + +/***/ }), + +/***/ 67972: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_2_1 = __nccwpck_require__(73080); +Object.defineProperty(exports, "adexchangebuyer_v1_2", ({ enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } })); +const v1_3_1 = __nccwpck_require__(57099); +Object.defineProperty(exports, "adexchangebuyer_v1_3", ({ enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } })); +const v1_4_1 = __nccwpck_require__(46288); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 73080: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = adexchangebuyer_v1_2 = {})); + + +/***/ }), + +/***/ 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.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__(40524); +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 = adexchangebuyer_v1_3 = {})); + + +/***/ }), + +/***/ 46288: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = adexchangebuyer_v1_4 = {})); + + +/***/ }), + +/***/ 78913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v2beta1_1 = __nccwpck_require__(49104); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 49104: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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); + this.buyers = new Resource$Buyers(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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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; + class Resource$Buyers { + constructor(context) { + this.context = context; + this.filterSets = new Resource$Buyers$Filtersets(this.context); + } + } + adexchangebuyer2_v2beta1.Resource$Buyers = Resource$Buyers; + class Resource$Buyers$Filtersets { + constructor(context) { + this.context = context; + this.bidMetrics = new Resource$Buyers$Filtersets$Bidmetrics(this.context); + this.bidResponseErrors = new Resource$Buyers$Filtersets$Bidresponseerrors(this.context); + this.bidResponsesWithoutBids = + new Resource$Buyers$Filtersets$Bidresponseswithoutbids(this.context); + this.filteredBidRequests = + new Resource$Buyers$Filtersets$Filteredbidrequests(this.context); + this.filteredBids = new Resource$Buyers$Filtersets$Filteredbids(this.context); + this.impressionMetrics = new Resource$Buyers$Filtersets$Impressionmetrics(this.context); + this.losingBids = new Resource$Buyers$Filtersets$Losingbids(this.context); + this.nonBillableWinningBids = + new Resource$Buyers$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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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$Buyers$Filtersets = Resource$Buyers$Filtersets; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Bidmetrics = Resource$Buyers$Filtersets$Bidmetrics; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Bidresponseerrors = Resource$Buyers$Filtersets$Bidresponseerrors; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Bidresponseswithoutbids = Resource$Buyers$Filtersets$Bidresponseswithoutbids; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Filteredbidrequests = Resource$Buyers$Filtersets$Filteredbidrequests; + class Resource$Buyers$Filtersets$Filteredbids { + constructor(context) { + this.context = context; + this.creatives = new Resource$Buyers$Filtersets$Filteredbids$Creatives(this.context); + this.details = new Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Filteredbids = Resource$Buyers$Filtersets$Filteredbids; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Filteredbids$Creatives = Resource$Buyers$Filtersets$Filteredbids$Creatives; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Filteredbids$Details = Resource$Buyers$Filtersets$Filteredbids$Details; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Impressionmetrics = Resource$Buyers$Filtersets$Impressionmetrics; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Losingbids = Resource$Buyers$Filtersets$Losingbids; + class Resource$Buyers$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', + apiVersion: '', + }, 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$Buyers$Filtersets$Nonbillablewinningbids = Resource$Buyers$Filtersets$Nonbillablewinningbids; +})(adexchangebuyer2_v2beta1 || (exports.adexchangebuyer2_v2beta1 = adexchangebuyer2_v2beta1 = {})); + + +/***/ }), + +/***/ 83156: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(34181); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 34181: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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 = adexperiencereport_v1 = {})); + + +/***/ }), + +/***/ 42718: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = admin_datatransfer_v1 = {})); + + +/***/ }), + +/***/ 63505: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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); + } + batchChangeStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:batchChangeStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = admin_directory_v1 = {})); + + +/***/ }), + +/***/ 40964: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const datatransfer_v1_1 = __nccwpck_require__(42718); +Object.defineProperty(exports, "admin_datatransfer_v1", ({ enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } })); +const directory_v1_1 = __nccwpck_require__(63505); +Object.defineProperty(exports, "admin_directory_v1", ({ enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } })); +const reports_v1_1 = __nccwpck_require__(83699); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 83699: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = admin_reports_v1 = {})); + + +/***/ }), + +/***/ 59074: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(72134); +Object.defineProperty(exports, "admob_v1", ({ enumerable: true, get: function () { return v1_1.admob_v1; } })); +const v1beta_1 = __nccwpck_require__(74789); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 72134: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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 = admob_v1 = {})); + + +/***/ }), + +/***/ 74789: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.adUnitMappings = new Resource$Accounts$Adunitmappings(this.context); + this.adUnits = new Resource$Accounts$Adunits(this.context); + this.apps = new Resource$Accounts$Apps(this.context); + this.campaignReport = new Resource$Accounts$Campaignreport(this.context); + this.mediationGroups = new Resource$Accounts$Mediationgroups(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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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; + this.adapters = new Resource$Accounts$Adsources$Adapters(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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/adSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Adsources$Adapters { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/adapters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Adapters = Resource$Accounts$Adsources$Adapters; + class Resource$Accounts$Adunitmappings { + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/adUnitMappings:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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$Adunitmappings = Resource$Accounts$Adunitmappings; + class Resource$Accounts$Adunits { + constructor(context) { + this.context = context; + this.adUnitMappings = new Resource$Accounts$Adunits$Adunitmappings(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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Adunits$Adunitmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/adUnitMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/adUnitMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Adunitmappings = Resource$Accounts$Adunits$Adunitmappings; + class Resource$Accounts$Apps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'POST', + apiVersion: '', + }, options), + params, + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Campaignreport { + 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}/campaignReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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$Campaignreport = Resource$Accounts$Campaignreport; + class Resource$Accounts$Mediationgroups { + constructor(context) { + this.context = context; + this.mediationAbExperiments = + new Resource$Accounts$Mediationgroups$Mediationabexperiments(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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/mediationGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/mediationGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admob_v1beta.Resource$Accounts$Mediationgroups = Resource$Accounts$Mediationgroups; + class Resource$Accounts$Mediationgroups$Mediationabexperiments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/mediationAbExperiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admob_v1beta.Resource$Accounts$Mediationgroups$Mediationabexperiments = Resource$Accounts$Mediationgroups$Mediationabexperiments; + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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 = admob_v1beta = {})); + + +/***/ }), + +/***/ 50185: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_4_1 = __nccwpck_require__(18750); +Object.defineProperty(exports, "adsense_v1_4", ({ enumerable: true, get: function () { return v1_4_1.adsense_v1_4; } })); +const v2_1 = __nccwpck_require__(84094); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 18750: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = adsense_v1_4 = {})); + + +/***/ }), + +/***/ 84094: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.policyIssues = new Resource$Accounts$Policyissues(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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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$Policyissues { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/policyIssues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Policyissues = Resource$Accounts$Policyissues; + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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 = adsense_v2 = {})); + + +/***/ }), + +/***/ 82048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v4_1_1 = __nccwpck_require__(33691); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 33691: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = adsensehost_v4_1 = {})); + + +/***/ }), + +/***/ 47939: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.adsenseplatform_v1alpha = exports.adsenseplatform_v1 = exports.auth = exports.adsenseplatform = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(31543); +Object.defineProperty(exports, "adsenseplatform_v1", ({ enumerable: true, get: function () { return v1_1.adsenseplatform_v1; } })); +const v1alpha_1 = __nccwpck_require__(15336); +Object.defineProperty(exports, "adsenseplatform_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.adsenseplatform_v1alpha; } })); +exports.VERSIONS = { + v1: v1_1.adsenseplatform_v1.Adsenseplatform, + v1alpha: v1alpha_1.adsenseplatform_v1alpha.Adsenseplatform, +}; +function adsenseplatform(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('adsenseplatform', versionOrOptions, exports.VERSIONS, this); +} +exports.adsenseplatform = adsenseplatform; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 31543: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adsenseplatform_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var adsenseplatform_v1; +(function (adsenseplatform_v1) { + /** + * AdSense Platform API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adsenseplatform = google.adsenseplatform('v1'); + * ``` + */ + class Adsenseplatform { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.platforms = new Resource$Platforms(this.context); + } + } + adsenseplatform_v1.Adsenseplatform = Adsenseplatform; + class Resource$Platforms { + constructor(context) { + this.context = context; + this.accounts = new Resource$Platforms$Accounts(this.context); + } + } + adsenseplatform_v1.Resource$Platforms = Resource$Platforms; + class Resource$Platforms$Accounts { + constructor(context) { + this.context = context; + this.events = new Resource$Platforms$Accounts$Events(this.context); + this.sites = new Resource$Platforms$Accounts$Sites(this.context); + } + close(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/accounts:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsenseplatform_v1.Resource$Platforms$Accounts = Resource$Platforms$Accounts; + class Resource$Platforms$Accounts$Events { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsenseplatform_v1.Resource$Platforms$Accounts$Events = Resource$Platforms$Accounts$Events; + class Resource$Platforms$Accounts$Sites { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + requestReview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:requestReview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsenseplatform_v1.Resource$Platforms$Accounts$Sites = Resource$Platforms$Accounts$Sites; +})(adsenseplatform_v1 || (exports.adsenseplatform_v1 = adsenseplatform_v1 = {})); + + +/***/ }), + +/***/ 15336: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adsenseplatform_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__(40524); +var adsenseplatform_v1alpha; +(function (adsenseplatform_v1alpha) { + /** + * AdSense Platform API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adsenseplatform = google.adsenseplatform('v1alpha'); + * ``` + */ + class Adsenseplatform { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.platforms = new Resource$Platforms(this.context); + } + } + adsenseplatform_v1alpha.Adsenseplatform = Adsenseplatform; + class Resource$Platforms { + constructor(context) { + this.context = context; + this.accounts = new Resource$Platforms$Accounts(this.context); + } + } + adsenseplatform_v1alpha.Resource$Platforms = Resource$Platforms; + class Resource$Platforms$Accounts { + constructor(context) { + this.context = context; + this.events = new Resource$Platforms$Accounts$Events(this.context); + this.sites = new Resource$Platforms$Accounts$Sites(this.context); + } + close(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accounts:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsenseplatform_v1alpha.Resource$Platforms$Accounts = Resource$Platforms$Accounts; + class Resource$Platforms$Accounts$Events { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsenseplatform_v1alpha.Resource$Platforms$Accounts$Events = Resource$Platforms$Accounts$Events; + class Resource$Platforms$Accounts$Sites { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + requestReview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adsenseplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:requestReview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsenseplatform_v1alpha.Resource$Platforms$Accounts$Sites = Resource$Platforms$Accounts$Sites; +})(adsenseplatform_v1alpha || (exports.adsenseplatform_v1alpha = adsenseplatform_v1alpha = {})); + + +/***/ }), + +/***/ 29617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(51499); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 51499: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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); + this.projects = new Resource$Projects(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); + } + 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://advisorynotifications.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://advisorynotifications.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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 = 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + advisorynotifications_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.notifications = new Resource$Projects$Locations$Notifications(this.context); + } + getSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://advisorynotifications.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://advisorynotifications.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + advisorynotifications_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Projects$Locations$Notifications = Resource$Projects$Locations$Notifications; +})(advisorynotifications_v1 || (exports.advisorynotifications_v1 = advisorynotifications_v1 = {})); + + +/***/ }), + +/***/ 39622: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.aiplatform_v1beta1 = exports.aiplatform_v1 = exports.auth = exports.aiplatform = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(7211); +Object.defineProperty(exports, "aiplatform_v1", ({ enumerable: true, get: function () { return v1_1.aiplatform_v1; } })); +const v1beta1_1 = __nccwpck_require__(30101); +Object.defineProperty(exports, "aiplatform_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.aiplatform_v1beta1; } })); +exports.VERSIONS = { + v1: v1_1.aiplatform_v1.Aiplatform, + v1beta1: v1beta1_1.aiplatform_v1beta1.Aiplatform, +}; +function aiplatform(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('aiplatform', versionOrOptions, exports.VERSIONS, this); +} +exports.aiplatform = aiplatform; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 7211: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.aiplatform_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var aiplatform_v1; +(function (aiplatform_v1) { + /** + * Vertex AI API + * + * Train high-quality custom machine learning models with minimal machine learning expertise and effort. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const aiplatform = google.aiplatform('v1'); + * ``` + */ + class Aiplatform { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.datasets = new Resource$Datasets(this.context); + this.endpoints = new Resource$Endpoints(this.context); + this.projects = new Resource$Projects(this.context); + this.publishers = new Resource$Publishers(this.context); + } + } + aiplatform_v1.Aiplatform = Aiplatform; + class Resource$Datasets { + constructor(context) { + this.context = context; + this.datasetVersions = new Resource$Datasets$Datasetversions(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Datasets = Resource$Datasets; + class Resource$Datasets$Datasetversions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/datasetVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/datasetVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Datasets$Datasetversions = Resource$Datasets$Datasetversions; + class Resource$Endpoints { + constructor(context) { + this.context = context; + } + computeTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:computeTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:countTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:generateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamGenerateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:streamGenerateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Endpoints = Resource$Endpoints; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + aiplatform_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.batchPredictionJobs = + new Resource$Projects$Locations$Batchpredictionjobs(this.context); + this.customJobs = new Resource$Projects$Locations$Customjobs(this.context); + this.dataLabelingJobs = new Resource$Projects$Locations$Datalabelingjobs(this.context); + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + this.deploymentResourcePools = + new Resource$Projects$Locations$Deploymentresourcepools(this.context); + this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); + this.featureGroups = new Resource$Projects$Locations$Featuregroups(this.context); + this.featureOnlineStores = + new Resource$Projects$Locations$Featureonlinestores(this.context); + this.featurestores = new Resource$Projects$Locations$Featurestores(this.context); + this.hyperparameterTuningJobs = + new Resource$Projects$Locations$Hyperparametertuningjobs(this.context); + this.indexEndpoints = new Resource$Projects$Locations$Indexendpoints(this.context); + this.indexes = new Resource$Projects$Locations$Indexes(this.context); + this.metadataStores = new Resource$Projects$Locations$Metadatastores(this.context); + this.migratableResources = + new Resource$Projects$Locations$Migratableresources(this.context); + this.modelDeploymentMonitoringJobs = + new Resource$Projects$Locations$Modeldeploymentmonitoringjobs(this.context); + this.models = new Resource$Projects$Locations$Models(this.context); + this.nasJobs = new Resource$Projects$Locations$Nasjobs(this.context); + this.notebookExecutionJobs = + new Resource$Projects$Locations$Notebookexecutionjobs(this.context); + this.notebookRuntimes = new Resource$Projects$Locations$Notebookruntimes(this.context); + this.notebookRuntimeTemplates = + new Resource$Projects$Locations$Notebookruntimetemplates(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.persistentResources = + new Resource$Projects$Locations$Persistentresources(this.context); + this.pipelineJobs = new Resource$Projects$Locations$Pipelinejobs(this.context); + this.publishers = new Resource$Projects$Locations$Publishers(this.context); + this.schedules = new Resource$Projects$Locations$Schedules(this.context); + this.specialistPools = new Resource$Projects$Locations$Specialistpools(this.context); + this.studies = new Resource$Projects$Locations$Studies(this.context); + this.tensorboards = new Resource$Projects$Locations$Tensorboards(this.context); + this.trainingPipelines = + new Resource$Projects$Locations$Trainingpipelines(this.context); + this.tuningJobs = new Resource$Projects$Locations$Tuningjobs(this.context); + } + evaluateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}:evaluateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Batchpredictionjobs { + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/batchPredictionJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/batchPredictionJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Batchpredictionjobs = Resource$Projects$Locations$Batchpredictionjobs; + class Resource$Projects$Locations$Customjobs { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Customjobs$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Customjobs = Resource$Projects$Locations$Customjobs; + class Resource$Projects$Locations$Customjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Customjobs$Operations = Resource$Projects$Locations$Customjobs$Operations; + class Resource$Projects$Locations$Datalabelingjobs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datalabelingjobs$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataLabelingJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataLabelingJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datalabelingjobs = Resource$Projects$Locations$Datalabelingjobs; + class Resource$Projects$Locations$Datalabelingjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datalabelingjobs$Operations = Resource$Projects$Locations$Datalabelingjobs$Operations; + class Resource$Projects$Locations$Datasets { + constructor(context) { + this.context = context; + this.annotationSpecs = + new Resource$Projects$Locations$Datasets$Annotationspecs(this.context); + this.dataItems = new Resource$Projects$Locations$Datasets$Dataitems(this.context); + this.datasetVersions = + new Resource$Projects$Locations$Datasets$Datasetversions(this.context); + this.operations = new Resource$Projects$Locations$Datasets$Operations(this.context); + this.savedQueries = new Resource$Projects$Locations$Datasets$Savedqueries(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchDataItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+dataset}:searchDataItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['dataset'], + pathParams: ['dataset'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; + class Resource$Projects$Locations$Datasets$Annotationspecs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datasets$Annotationspecs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Annotationspecs = Resource$Projects$Locations$Datasets$Annotationspecs; + class Resource$Projects$Locations$Datasets$Annotationspecs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Annotationspecs$Operations = Resource$Projects$Locations$Datasets$Annotationspecs$Operations; + class Resource$Projects$Locations$Datasets$Dataitems { + constructor(context) { + this.context = context; + this.annotations = + new Resource$Projects$Locations$Datasets$Dataitems$Annotations(this.context); + this.operations = + new Resource$Projects$Locations$Datasets$Dataitems$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Dataitems = Resource$Projects$Locations$Datasets$Dataitems; + class Resource$Projects$Locations$Datasets$Dataitems$Annotations { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datasets$Dataitems$Annotations$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Dataitems$Annotations = Resource$Projects$Locations$Datasets$Dataitems$Annotations; + class Resource$Projects$Locations$Datasets$Dataitems$Annotations$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Dataitems$Annotations$Operations = Resource$Projects$Locations$Datasets$Dataitems$Annotations$Operations; + class Resource$Projects$Locations$Datasets$Dataitems$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Dataitems$Operations = Resource$Projects$Locations$Datasets$Dataitems$Operations; + class Resource$Projects$Locations$Datasets$Datasetversions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/datasetVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/datasetVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Datasetversions = Resource$Projects$Locations$Datasets$Datasetversions; + 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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; + class Resource$Projects$Locations$Datasets$Savedqueries { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datasets$Savedqueries$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Savedqueries = Resource$Projects$Locations$Datasets$Savedqueries; + class Resource$Projects$Locations$Datasets$Savedqueries$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Datasets$Savedqueries$Operations = Resource$Projects$Locations$Datasets$Savedqueries$Operations; + class Resource$Projects$Locations$Deploymentresourcepools { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Deploymentresourcepools$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deploymentResourcePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deploymentResourcePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryDeployedModels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+deploymentResourcePool}:queryDeployedModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['deploymentResourcePool'], + pathParams: ['deploymentResourcePool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Deploymentresourcepools = Resource$Projects$Locations$Deploymentresourcepools; + class Resource$Projects$Locations$Deploymentresourcepools$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Deploymentresourcepools$Operations = Resource$Projects$Locations$Deploymentresourcepools$Operations; + class Resource$Projects$Locations$Endpoints { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Endpoints$Operations(this.context); + } + computeTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:computeTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:countTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deployModel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:deployModel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + directPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:directPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + directRawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:directRawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + explain(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:explain').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:generateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + mutateDeployedModel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:mutateDeployedModel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:rawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + serverStreamingPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:serverStreamingPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamGenerateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:streamGenerateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamRawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:streamRawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeployModel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:undeployModel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Endpoints = Resource$Projects$Locations$Endpoints; + class Resource$Projects$Locations$Endpoints$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Endpoints$Operations = Resource$Projects$Locations$Endpoints$Operations; + class Resource$Projects$Locations$Featuregroups { + constructor(context) { + this.context = context; + this.features = new Resource$Projects$Locations$Featuregroups$Features(this.context); + this.operations = + new Resource$Projects$Locations$Featuregroups$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featureGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featureGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featuregroups = Resource$Projects$Locations$Featuregroups; + class Resource$Projects$Locations$Featuregroups$Features { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Featuregroups$Features$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featuregroups$Features = Resource$Projects$Locations$Featuregroups$Features; + class Resource$Projects$Locations$Featuregroups$Features$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listWait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featuregroups$Features$Operations = Resource$Projects$Locations$Featuregroups$Features$Operations; + class Resource$Projects$Locations$Featuregroups$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listWait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featuregroups$Operations = Resource$Projects$Locations$Featuregroups$Operations; + class Resource$Projects$Locations$Featureonlinestores { + constructor(context) { + this.context = context; + this.featureViews = + new Resource$Projects$Locations$Featureonlinestores$Featureviews(this.context); + this.operations = + new Resource$Projects$Locations$Featureonlinestores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featureOnlineStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featureOnlineStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featureonlinestores = Resource$Projects$Locations$Featureonlinestores; + class Resource$Projects$Locations$Featureonlinestores$Featureviews { + constructor(context) { + this.context = context; + this.featureViewSyncs = + new Resource$Projects$Locations$Featureonlinestores$Featureviews$Featureviewsyncs(this.context); + this.operations = + new Resource$Projects$Locations$Featureonlinestores$Featureviews$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featureViews').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+featureView}:fetchFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featureView'], + pathParams: ['featureView'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featureViews').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchNearestEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+featureView}:searchNearestEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featureView'], + pathParams: ['featureView'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+featureView}:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featureView'], + pathParams: ['featureView'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featureonlinestores$Featureviews = Resource$Projects$Locations$Featureonlinestores$Featureviews; + class Resource$Projects$Locations$Featureonlinestores$Featureviews$Featureviewsyncs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featureViewSyncs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featureonlinestores$Featureviews$Featureviewsyncs = Resource$Projects$Locations$Featureonlinestores$Featureviews$Featureviewsyncs; + class Resource$Projects$Locations$Featureonlinestores$Featureviews$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listWait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featureonlinestores$Featureviews$Operations = Resource$Projects$Locations$Featureonlinestores$Featureviews$Operations; + class Resource$Projects$Locations$Featureonlinestores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listWait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featureonlinestores$Operations = Resource$Projects$Locations$Featureonlinestores$Operations; + class Resource$Projects$Locations$Featurestores { + constructor(context) { + this.context = context; + this.entityTypes = + new Resource$Projects$Locations$Featurestores$Entitytypes(this.context); + this.operations = + new Resource$Projects$Locations$Featurestores$Operations(this.context); + } + batchReadFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+featurestore}:batchReadFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featurestore'], + pathParams: ['featurestore'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featurestores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/featurestores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}/featurestores:searchFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featurestores = Resource$Projects$Locations$Featurestores; + class Resource$Projects$Locations$Featurestores$Entitytypes { + constructor(context) { + this.context = context; + this.features = + new Resource$Projects$Locations$Featurestores$Entitytypes$Features(this.context); + this.operations = + new Resource$Projects$Locations$Featurestores$Entitytypes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+entityType}:deleteFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+entityType}:exportFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+entityType}:importFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+entityType}:readFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamingReadFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+entityType}:streamingReadFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + writeFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+entityType}:writeFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featurestores$Entitytypes = Resource$Projects$Locations$Featurestores$Entitytypes; + class Resource$Projects$Locations$Featurestores$Entitytypes$Features { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Featurestores$Entitytypes$Features$Operations(this.context); + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/features:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featurestores$Entitytypes$Features = Resource$Projects$Locations$Featurestores$Entitytypes$Features; + class Resource$Projects$Locations$Featurestores$Entitytypes$Features$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featurestores$Entitytypes$Features$Operations = Resource$Projects$Locations$Featurestores$Entitytypes$Features$Operations; + class Resource$Projects$Locations$Featurestores$Entitytypes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featurestores$Entitytypes$Operations = Resource$Projects$Locations$Featurestores$Entitytypes$Operations; + class Resource$Projects$Locations$Featurestores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Featurestores$Operations = Resource$Projects$Locations$Featurestores$Operations; + class Resource$Projects$Locations$Hyperparametertuningjobs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Hyperparametertuningjobs$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/hyperparameterTuningJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/hyperparameterTuningJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Hyperparametertuningjobs = Resource$Projects$Locations$Hyperparametertuningjobs; + class Resource$Projects$Locations$Hyperparametertuningjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Hyperparametertuningjobs$Operations = Resource$Projects$Locations$Hyperparametertuningjobs$Operations; + class Resource$Projects$Locations$Indexendpoints { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Indexendpoints$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/indexEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deployIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+indexEndpoint}:deployIndex').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + findNeighbors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+indexEndpoint}:findNeighbors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/indexEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + mutateDeployedIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+indexEndpoint}:mutateDeployedIndex').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readIndexDatapoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+indexEndpoint}:readIndexDatapoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeployIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+indexEndpoint}:undeployIndex').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Indexendpoints = Resource$Projects$Locations$Indexendpoints; + class Resource$Projects$Locations$Indexendpoints$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Indexendpoints$Operations = Resource$Projects$Locations$Indexendpoints$Operations; + class Resource$Projects$Locations$Indexes { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Indexes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeDatapoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+index}:removeDatapoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['index'], + pathParams: ['index'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upsertDatapoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+index}:upsertDatapoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['index'], + pathParams: ['index'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Indexes = Resource$Projects$Locations$Indexes; + class Resource$Projects$Locations$Indexes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Indexes$Operations = Resource$Projects$Locations$Indexes$Operations; + class Resource$Projects$Locations$Metadatastores { + constructor(context) { + this.context = context; + this.artifacts = new Resource$Projects$Locations$Metadatastores$Artifacts(this.context); + this.contexts = new Resource$Projects$Locations$Metadatastores$Contexts(this.context); + this.executions = + new Resource$Projects$Locations$Metadatastores$Executions(this.context); + this.metadataSchemas = + new Resource$Projects$Locations$Metadatastores$Metadataschemas(this.context); + this.operations = + new Resource$Projects$Locations$Metadatastores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/metadataStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/metadataStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores = Resource$Projects$Locations$Metadatastores; + class Resource$Projects$Locations$Metadatastores$Artifacts { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Metadatastores$Artifacts$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryArtifactLineageSubgraph(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+artifact}:queryArtifactLineageSubgraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['artifact'], + pathParams: ['artifact'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores$Artifacts = Resource$Projects$Locations$Metadatastores$Artifacts; + class Resource$Projects$Locations$Metadatastores$Artifacts$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores$Artifacts$Operations = Resource$Projects$Locations$Metadatastores$Artifacts$Operations; + class Resource$Projects$Locations$Metadatastores$Contexts { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Metadatastores$Contexts$Operations(this.context); + } + addContextArtifactsAndExecutions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+context}:addContextArtifactsAndExecutions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['context'], + pathParams: ['context'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addContextChildren(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+context}:addContextChildren').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['context'], + pathParams: ['context'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contexts:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryContextLineageSubgraph(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+context}:queryContextLineageSubgraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['context'], + pathParams: ['context'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeContextChildren(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+context}:removeContextChildren').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['context'], + pathParams: ['context'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores$Contexts = Resource$Projects$Locations$Metadatastores$Contexts; + class Resource$Projects$Locations$Metadatastores$Contexts$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores$Contexts$Operations = Resource$Projects$Locations$Metadatastores$Contexts$Operations; + class Resource$Projects$Locations$Metadatastores$Executions { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Metadatastores$Executions$Operations(this.context); + } + addExecutionEvents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+execution}:addExecutionEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['execution'], + pathParams: ['execution'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/executions:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryExecutionInputsAndOutputs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+execution}:queryExecutionInputsAndOutputs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['execution'], + pathParams: ['execution'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores$Executions = Resource$Projects$Locations$Metadatastores$Executions; + class Resource$Projects$Locations$Metadatastores$Executions$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores$Executions$Operations = Resource$Projects$Locations$Metadatastores$Executions$Operations; + class Resource$Projects$Locations$Metadatastores$Metadataschemas { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/metadataSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/metadataSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores$Metadataschemas = Resource$Projects$Locations$Metadatastores$Metadataschemas; + class Resource$Projects$Locations$Metadatastores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Metadatastores$Operations = Resource$Projects$Locations$Metadatastores$Operations; + class Resource$Projects$Locations$Migratableresources { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Migratableresources$Operations(this.context); + } + batchMigrate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/migratableResources:batchMigrate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/migratableResources:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Migratableresources = Resource$Projects$Locations$Migratableresources; + class Resource$Projects$Locations$Migratableresources$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Migratableresources$Operations = Resource$Projects$Locations$Migratableresources$Operations; + class Resource$Projects$Locations$Modeldeploymentmonitoringjobs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Modeldeploymentmonitoringjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/modelDeploymentMonitoringJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/modelDeploymentMonitoringJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchModelDeploymentMonitoringStatsAnomalies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['modelDeploymentMonitoringJob'], + pathParams: ['modelDeploymentMonitoringJob'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Modeldeploymentmonitoringjobs = Resource$Projects$Locations$Modeldeploymentmonitoringjobs; + class Resource$Projects$Locations$Modeldeploymentmonitoringjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Modeldeploymentmonitoringjobs$Operations = Resource$Projects$Locations$Modeldeploymentmonitoringjobs$Operations; + class Resource$Projects$Locations$Models { + constructor(context) { + this.context = context; + this.evaluations = new Resource$Projects$Locations$Models$Evaluations(this.context); + this.operations = new Resource$Projects$Locations$Models$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/models:copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteVersion(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deleteVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listVersions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:listVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + mergeVersionAliases(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:mergeVersionAliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateExplanationDataset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:updateExplanationDataset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/models:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Models = Resource$Projects$Locations$Models; + class Resource$Projects$Locations$Models$Evaluations { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Models$Evaluations$Operations(this.context); + this.slices = new Resource$Projects$Locations$Models$Evaluations$Slices(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/evaluations:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Models$Evaluations = Resource$Projects$Locations$Models$Evaluations; + class Resource$Projects$Locations$Models$Evaluations$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Models$Evaluations$Operations = Resource$Projects$Locations$Models$Evaluations$Operations; + class Resource$Projects$Locations$Models$Evaluations$Slices { + constructor(context) { + this.context = context; + } + batchImport(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:batchImport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/slices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Models$Evaluations$Slices = Resource$Projects$Locations$Models$Evaluations$Slices; + class Resource$Projects$Locations$Models$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Models$Operations = Resource$Projects$Locations$Models$Operations; + class Resource$Projects$Locations$Nasjobs { + constructor(context) { + this.context = context; + this.nasTrialDetails = + new Resource$Projects$Locations$Nasjobs$Nastrialdetails(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nasJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nasJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Nasjobs = Resource$Projects$Locations$Nasjobs; + class Resource$Projects$Locations$Nasjobs$Nastrialdetails { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nasTrialDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Nasjobs$Nastrialdetails = Resource$Projects$Locations$Nasjobs$Nastrialdetails; + class Resource$Projects$Locations$Notebookexecutionjobs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Notebookexecutionjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notebookExecutionJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notebookExecutionJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Notebookexecutionjobs = Resource$Projects$Locations$Notebookexecutionjobs; + class Resource$Projects$Locations$Notebookexecutionjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Notebookexecutionjobs$Operations = Resource$Projects$Locations$Notebookexecutionjobs$Operations; + class Resource$Projects$Locations$Notebookruntimes { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Notebookruntimes$Operations(this.context); + } + assign(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notebookRuntimes:assign').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notebookRuntimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Notebookruntimes = Resource$Projects$Locations$Notebookruntimes; + class Resource$Projects$Locations$Notebookruntimes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Notebookruntimes$Operations = Resource$Projects$Locations$Notebookruntimes$Operations; + class Resource$Projects$Locations$Notebookruntimetemplates { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Notebookruntimetemplates$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notebookRuntimeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notebookRuntimeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Notebookruntimetemplates = Resource$Projects$Locations$Notebookruntimetemplates; + class Resource$Projects$Locations$Notebookruntimetemplates$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Notebookruntimetemplates$Operations = Resource$Projects$Locations$Notebookruntimetemplates$Operations; + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Persistentresources { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Persistentresources$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/persistentResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/persistentResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reboot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:reboot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Persistentresources = Resource$Projects$Locations$Persistentresources; + class Resource$Projects$Locations$Persistentresources$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Persistentresources$Operations = Resource$Projects$Locations$Persistentresources$Operations; + class Resource$Projects$Locations$Pipelinejobs { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Pipelinejobs$Operations(this.context); + } + batchCancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pipelineJobs:batchCancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pipelineJobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pipelineJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pipelineJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Pipelinejobs = Resource$Projects$Locations$Pipelinejobs; + class Resource$Projects$Locations$Pipelinejobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Pipelinejobs$Operations = Resource$Projects$Locations$Pipelinejobs$Operations; + class Resource$Projects$Locations$Publishers { + constructor(context) { + this.context = context; + this.models = new Resource$Projects$Locations$Publishers$Models(this.context); + } + } + aiplatform_v1.Resource$Projects$Locations$Publishers = Resource$Projects$Locations$Publishers; + class Resource$Projects$Locations$Publishers$Models { + constructor(context) { + this.context = context; + } + computeTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:computeTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:countTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:generateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:rawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + serverStreamingPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:serverStreamingPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamGenerateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:streamGenerateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamRawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:streamRawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Publishers$Models = Resource$Projects$Locations$Publishers$Models; + class Resource$Projects$Locations$Schedules { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Schedules$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Schedules = Resource$Projects$Locations$Schedules; + class Resource$Projects$Locations$Schedules$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Schedules$Operations = Resource$Projects$Locations$Schedules$Operations; + class Resource$Projects$Locations$Specialistpools { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Specialistpools$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/specialistPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/specialistPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Specialistpools = Resource$Projects$Locations$Specialistpools; + class Resource$Projects$Locations$Specialistpools$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Specialistpools$Operations = Resource$Projects$Locations$Specialistpools$Operations; + class Resource$Projects$Locations$Studies { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Studies$Operations(this.context); + this.trials = new Resource$Projects$Locations$Studies$Trials(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/studies:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Studies = Resource$Projects$Locations$Studies; + class Resource$Projects$Locations$Studies$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Studies$Operations = Resource$Projects$Locations$Studies$Operations; + class Resource$Projects$Locations$Studies$Trials { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Studies$Trials$Operations(this.context); + } + addTrialMeasurement(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+trialName}:addTrialMeasurement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['trialName'], + pathParams: ['trialName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + checkTrialEarlyStoppingState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+trialName}:checkTrialEarlyStoppingState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['trialName'], + pathParams: ['trialName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + complete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listOptimalTrials(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials:listOptimalTrials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials:suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Studies$Trials = Resource$Projects$Locations$Studies$Trials; + class Resource$Projects$Locations$Studies$Trials$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Studies$Trials$Operations = Resource$Projects$Locations$Studies$Trials$Operations; + class Resource$Projects$Locations$Tensorboards { + constructor(context) { + this.context = context; + this.experiments = + new Resource$Projects$Locations$Tensorboards$Experiments(this.context); + this.operations = new Resource$Projects$Locations$Tensorboards$Operations(this.context); + } + batchRead(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+tensorboard}:batchRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboard'], + pathParams: ['tensorboard'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tensorboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tensorboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readSize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+tensorboard}:readSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboard'], + pathParams: ['tensorboard'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readUsage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+tensorboard}:readUsage').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboard'], + pathParams: ['tensorboard'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tensorboards = Resource$Projects$Locations$Tensorboards; + class Resource$Projects$Locations$Tensorboards$Experiments { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Tensorboards$Experiments$Operations(this.context); + this.runs = new Resource$Projects$Locations$Tensorboards$Experiments$Runs(this.context); + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+tensorboardExperiment}:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboardExperiment'], + pathParams: ['tensorboardExperiment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tensorboards$Experiments = Resource$Projects$Locations$Tensorboards$Experiments; + class Resource$Projects$Locations$Tensorboards$Experiments$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tensorboards$Experiments$Operations = Resource$Projects$Locations$Tensorboards$Experiments$Operations; + class Resource$Projects$Locations$Tensorboards$Experiments$Runs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Tensorboards$Experiments$Runs$Operations(this.context); + this.timeSeries = + new Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries(this.context); + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/runs:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+tensorboardRun}:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboardRun'], + pathParams: ['tensorboardRun'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tensorboards$Experiments$Runs = Resource$Projects$Locations$Tensorboards$Experiments$Runs; + class Resource$Projects$Locations$Tensorboards$Experiments$Runs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tensorboards$Experiments$Runs$Operations = Resource$Projects$Locations$Tensorboards$Experiments$Runs$Operations; + class Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportTensorboardTimeSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+tensorboardTimeSeries}:exportTensorboardTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboardTimeSeries'], + pathParams: ['tensorboardTimeSeries'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + read(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+tensorboardTimeSeries}:read').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboardTimeSeries'], + pathParams: ['tensorboardTimeSeries'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readBlobData(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+timeSeries}:readBlobData').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['timeSeries'], + pathParams: ['timeSeries'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries = Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries; + class Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries$Operations = Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries$Operations; + class Resource$Projects$Locations$Tensorboards$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tensorboards$Operations = Resource$Projects$Locations$Tensorboards$Operations; + class Resource$Projects$Locations$Trainingpipelines { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Trainingpipelines$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trainingPipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trainingPipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Trainingpipelines = Resource$Projects$Locations$Trainingpipelines; + class Resource$Projects$Locations$Trainingpipelines$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Trainingpipelines$Operations = Resource$Projects$Locations$Trainingpipelines$Operations; + class Resource$Projects$Locations$Tuningjobs { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Tuningjobs$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tuningJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tuningJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tuningjobs = Resource$Projects$Locations$Tuningjobs; + class Resource$Projects$Locations$Tuningjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Projects$Locations$Tuningjobs$Operations = Resource$Projects$Locations$Tuningjobs$Operations; + class Resource$Publishers { + constructor(context) { + this.context = context; + this.models = new Resource$Publishers$Models(this.context); + } + } + aiplatform_v1.Resource$Publishers = Resource$Publishers; + class Resource$Publishers$Models { + constructor(context) { + this.context = context; + } + computeTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:computeTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+endpoint}:countTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:generateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamGenerateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+model}:streamGenerateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1.Resource$Publishers$Models = Resource$Publishers$Models; +})(aiplatform_v1 || (exports.aiplatform_v1 = aiplatform_v1 = {})); + + +/***/ }), + +/***/ 30101: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.aiplatform_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__(40524); +var aiplatform_v1beta1; +(function (aiplatform_v1beta1) { + /** + * Vertex AI API + * + * Train high-quality custom machine learning models with minimal machine learning expertise and effort. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const aiplatform = google.aiplatform('v1beta1'); + * ``` + */ + class Aiplatform { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.datasets = new Resource$Datasets(this.context); + this.endpoints = new Resource$Endpoints(this.context); + this.media = new Resource$Media(this.context); + this.projects = new Resource$Projects(this.context); + this.publishers = new Resource$Publishers(this.context); + } + } + aiplatform_v1beta1.Aiplatform = Aiplatform; + class Resource$Datasets { + constructor(context) { + this.context = context; + this.datasetVersions = new Resource$Datasets$Datasetversions(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Datasets = Resource$Datasets; + class Resource$Datasets$Datasetversions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/datasetVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/datasetVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Datasets$Datasetversions = Resource$Datasets$Datasetversions; + class Resource$Endpoints { + constructor(context) { + this.context = context; + } + computeTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:computeTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:countTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:generateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamGenerateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:streamGenerateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Endpoints = Resource$Endpoints; + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/ragFiles:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1beta1/{+parent}/ragFiles:upload').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Media = Resource$Media; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + getCacheConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCacheConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.agents = new Resource$Projects$Locations$Agents(this.context); + this.apps = new Resource$Projects$Locations$Apps(this.context); + this.batchPredictionJobs = + new Resource$Projects$Locations$Batchpredictionjobs(this.context); + this.cachedContents = new Resource$Projects$Locations$Cachedcontents(this.context); + this.customJobs = new Resource$Projects$Locations$Customjobs(this.context); + this.dataLabelingJobs = new Resource$Projects$Locations$Datalabelingjobs(this.context); + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + this.deploymentResourcePools = + new Resource$Projects$Locations$Deploymentresourcepools(this.context); + this.edgeDevices = new Resource$Projects$Locations$Edgedevices(this.context); + this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); + this.evaluationTasks = new Resource$Projects$Locations$Evaluationtasks(this.context); + this.exampleStores = new Resource$Projects$Locations$Examplestores(this.context); + this.extensionControllers = + new Resource$Projects$Locations$Extensioncontrollers(this.context); + this.extensions = new Resource$Projects$Locations$Extensions(this.context); + this.featureGroups = new Resource$Projects$Locations$Featuregroups(this.context); + this.featureOnlineStores = + new Resource$Projects$Locations$Featureonlinestores(this.context); + this.featurestores = new Resource$Projects$Locations$Featurestores(this.context); + this.hyperparameterTuningJobs = + new Resource$Projects$Locations$Hyperparametertuningjobs(this.context); + this.indexEndpoints = new Resource$Projects$Locations$Indexendpoints(this.context); + this.indexes = new Resource$Projects$Locations$Indexes(this.context); + this.metadataStores = new Resource$Projects$Locations$Metadatastores(this.context); + this.migratableResources = + new Resource$Projects$Locations$Migratableresources(this.context); + this.modelDeploymentMonitoringJobs = + new Resource$Projects$Locations$Modeldeploymentmonitoringjobs(this.context); + this.modelMonitors = new Resource$Projects$Locations$Modelmonitors(this.context); + this.models = new Resource$Projects$Locations$Models(this.context); + this.nasJobs = new Resource$Projects$Locations$Nasjobs(this.context); + this.notebookExecutionJobs = + new Resource$Projects$Locations$Notebookexecutionjobs(this.context); + this.notebookRuntimes = new Resource$Projects$Locations$Notebookruntimes(this.context); + this.notebookRuntimeTemplates = + new Resource$Projects$Locations$Notebookruntimetemplates(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.persistentResources = + new Resource$Projects$Locations$Persistentresources(this.context); + this.pipelineJobs = new Resource$Projects$Locations$Pipelinejobs(this.context); + this.publishers = new Resource$Projects$Locations$Publishers(this.context); + this.ragCorpora = new Resource$Projects$Locations$Ragcorpora(this.context); + this.reasoningEngines = new Resource$Projects$Locations$Reasoningengines(this.context); + this.schedules = new Resource$Projects$Locations$Schedules(this.context); + this.solvers = new Resource$Projects$Locations$Solvers(this.context); + this.specialistPools = new Resource$Projects$Locations$Specialistpools(this.context); + this.studies = new Resource$Projects$Locations$Studies(this.context); + this.tensorboards = new Resource$Projects$Locations$Tensorboards(this.context); + this.trainingPipelines = + new Resource$Projects$Locations$Trainingpipelines(this.context); + this.tuningJobs = new Resource$Projects$Locations$Tuningjobs(this.context); + } + evaluateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+location}:evaluateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveContexts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:retrieveContexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Agents { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Agents$Operations(this.context); + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Agents = Resource$Projects$Locations$Agents; + class Resource$Projects$Locations$Agents$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Agents$Operations = Resource$Projects$Locations$Agents$Operations; + class Resource$Projects$Locations$Apps { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Apps$Operations(this.context); + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Apps = Resource$Projects$Locations$Apps; + class Resource$Projects$Locations$Apps$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Apps$Operations = Resource$Projects$Locations$Apps$Operations; + class Resource$Projects$Locations$Batchpredictionjobs { + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/batchPredictionJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/batchPredictionJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Batchpredictionjobs = Resource$Projects$Locations$Batchpredictionjobs; + class Resource$Projects$Locations$Cachedcontents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/cachedContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/cachedContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Cachedcontents = Resource$Projects$Locations$Cachedcontents; + class Resource$Projects$Locations$Customjobs { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Customjobs$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/customJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/customJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Customjobs = Resource$Projects$Locations$Customjobs; + class Resource$Projects$Locations$Customjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Customjobs$Operations = Resource$Projects$Locations$Customjobs$Operations; + class Resource$Projects$Locations$Datalabelingjobs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datalabelingjobs$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dataLabelingJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dataLabelingJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datalabelingjobs = Resource$Projects$Locations$Datalabelingjobs; + class Resource$Projects$Locations$Datalabelingjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datalabelingjobs$Operations = Resource$Projects$Locations$Datalabelingjobs$Operations; + class Resource$Projects$Locations$Datasets { + constructor(context) { + this.context = context; + this.annotationSpecs = + new Resource$Projects$Locations$Datasets$Annotationspecs(this.context); + this.dataItems = new Resource$Projects$Locations$Datasets$Dataitems(this.context); + this.datasetVersions = + new Resource$Projects$Locations$Datasets$Datasetversions(this.context); + this.operations = new Resource$Projects$Locations$Datasets$Operations(this.context); + this.savedQueries = new Resource$Projects$Locations$Datasets$Savedqueries(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchDataItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+dataset}:searchDataItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['dataset'], + pathParams: ['dataset'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; + class Resource$Projects$Locations$Datasets$Annotationspecs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datasets$Annotationspecs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Annotationspecs = Resource$Projects$Locations$Datasets$Annotationspecs; + class Resource$Projects$Locations$Datasets$Annotationspecs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Annotationspecs$Operations = Resource$Projects$Locations$Datasets$Annotationspecs$Operations; + class Resource$Projects$Locations$Datasets$Dataitems { + constructor(context) { + this.context = context; + this.annotations = + new Resource$Projects$Locations$Datasets$Dataitems$Annotations(this.context); + this.operations = + new Resource$Projects$Locations$Datasets$Dataitems$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dataItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Dataitems = Resource$Projects$Locations$Datasets$Dataitems; + class Resource$Projects$Locations$Datasets$Dataitems$Annotations { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datasets$Dataitems$Annotations$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Dataitems$Annotations = Resource$Projects$Locations$Datasets$Dataitems$Annotations; + class Resource$Projects$Locations$Datasets$Dataitems$Annotations$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Dataitems$Annotations$Operations = Resource$Projects$Locations$Datasets$Dataitems$Annotations$Operations; + class Resource$Projects$Locations$Datasets$Dataitems$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Dataitems$Operations = Resource$Projects$Locations$Datasets$Dataitems$Operations; + class Resource$Projects$Locations$Datasets$Datasetversions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/datasetVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/datasetVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Datasetversions = Resource$Projects$Locations$Datasets$Datasetversions; + 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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; + class Resource$Projects$Locations$Datasets$Savedqueries { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datasets$Savedqueries$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Savedqueries = Resource$Projects$Locations$Datasets$Savedqueries; + class Resource$Projects$Locations$Datasets$Savedqueries$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Datasets$Savedqueries$Operations = Resource$Projects$Locations$Datasets$Savedqueries$Operations; + class Resource$Projects$Locations$Deploymentresourcepools { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Deploymentresourcepools$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/deploymentResourcePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/deploymentResourcePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryDeployedModels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+deploymentResourcePool}:queryDeployedModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['deploymentResourcePool'], + pathParams: ['deploymentResourcePool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Deploymentresourcepools = Resource$Projects$Locations$Deploymentresourcepools; + class Resource$Projects$Locations$Deploymentresourcepools$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Deploymentresourcepools$Operations = Resource$Projects$Locations$Deploymentresourcepools$Operations; + class Resource$Projects$Locations$Edgedevices { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Edgedevices$Operations(this.context); + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Edgedevices = Resource$Projects$Locations$Edgedevices; + class Resource$Projects$Locations$Edgedevices$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Edgedevices$Operations = Resource$Projects$Locations$Edgedevices$Operations; + class Resource$Projects$Locations$Endpoints { + constructor(context) { + this.context = context; + this.chat = new Resource$Projects$Locations$Endpoints$Chat(this.context); + this.operations = new Resource$Projects$Locations$Endpoints$Operations(this.context); + } + computeTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:computeTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:countTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deployModel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:deployModel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + directPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:directPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + directRawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:directRawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + explain(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:explain').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:generateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + mutateDeployedModel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:mutateDeployedModel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:rawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + serverStreamingPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:serverStreamingPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamGenerateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:streamGenerateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamRawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:streamRawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeployModel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:undeployModel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Endpoints = Resource$Projects$Locations$Endpoints; + class Resource$Projects$Locations$Endpoints$Chat { + constructor(context) { + this.context = context; + } + completions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}/chat/completions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Endpoints$Chat = Resource$Projects$Locations$Endpoints$Chat; + class Resource$Projects$Locations$Endpoints$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Endpoints$Operations = Resource$Projects$Locations$Endpoints$Operations; + class Resource$Projects$Locations$Evaluationtasks { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Evaluationtasks$Operations(this.context); + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Evaluationtasks = Resource$Projects$Locations$Evaluationtasks; + class Resource$Projects$Locations$Evaluationtasks$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Evaluationtasks$Operations = Resource$Projects$Locations$Evaluationtasks$Operations; + class Resource$Projects$Locations$Examplestores { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Examplestores$Operations(this.context); + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Examplestores = Resource$Projects$Locations$Examplestores; + class Resource$Projects$Locations$Examplestores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Examplestores$Operations = Resource$Projects$Locations$Examplestores$Operations; + class Resource$Projects$Locations$Extensioncontrollers { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Extensioncontrollers$Operations(this.context); + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Extensioncontrollers = Resource$Projects$Locations$Extensioncontrollers; + class Resource$Projects$Locations$Extensioncontrollers$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Extensioncontrollers$Operations = Resource$Projects$Locations$Extensioncontrollers$Operations; + class Resource$Projects$Locations$Extensions { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Extensions$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + execute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/extensions:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/extensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Extensions = Resource$Projects$Locations$Extensions; + class Resource$Projects$Locations$Extensions$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Extensions$Operations = Resource$Projects$Locations$Extensions$Operations; + class Resource$Projects$Locations$Featuregroups { + constructor(context) { + this.context = context; + this.features = new Resource$Projects$Locations$Featuregroups$Features(this.context); + this.operations = + new Resource$Projects$Locations$Featuregroups$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featureGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featureGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featuregroups = Resource$Projects$Locations$Featuregroups; + class Resource$Projects$Locations$Featuregroups$Features { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Featuregroups$Features$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featuregroups$Features = Resource$Projects$Locations$Featuregroups$Features; + class Resource$Projects$Locations$Featuregroups$Features$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featuregroups$Features$Operations = Resource$Projects$Locations$Featuregroups$Features$Operations; + class Resource$Projects$Locations$Featuregroups$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featuregroups$Operations = Resource$Projects$Locations$Featuregroups$Operations; + class Resource$Projects$Locations$Featureonlinestores { + constructor(context) { + this.context = context; + this.featureViews = + new Resource$Projects$Locations$Featureonlinestores$Featureviews(this.context); + this.operations = + new Resource$Projects$Locations$Featureonlinestores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featureOnlineStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featureOnlineStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featureonlinestores = Resource$Projects$Locations$Featureonlinestores; + class Resource$Projects$Locations$Featureonlinestores$Featureviews { + constructor(context) { + this.context = context; + this.featureViewSyncs = + new Resource$Projects$Locations$Featureonlinestores$Featureviews$Featureviewsyncs(this.context); + this.operations = + new Resource$Projects$Locations$Featureonlinestores$Featureviews$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featureViews').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+featureView}:fetchFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featureView'], + pathParams: ['featureView'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featureViews').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchNearestEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+featureView}:searchNearestEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featureView'], + pathParams: ['featureView'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamingFetchFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+featureView}:streamingFetchFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featureView'], + pathParams: ['featureView'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+featureView}:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featureView'], + pathParams: ['featureView'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featureonlinestores$Featureviews = Resource$Projects$Locations$Featureonlinestores$Featureviews; + class Resource$Projects$Locations$Featureonlinestores$Featureviews$Featureviewsyncs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featureViewSyncs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featureonlinestores$Featureviews$Featureviewsyncs = Resource$Projects$Locations$Featureonlinestores$Featureviews$Featureviewsyncs; + class Resource$Projects$Locations$Featureonlinestores$Featureviews$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featureonlinestores$Featureviews$Operations = Resource$Projects$Locations$Featureonlinestores$Featureviews$Operations; + class Resource$Projects$Locations$Featureonlinestores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featureonlinestores$Operations = Resource$Projects$Locations$Featureonlinestores$Operations; + class Resource$Projects$Locations$Featurestores { + constructor(context) { + this.context = context; + this.entityTypes = + new Resource$Projects$Locations$Featurestores$Entitytypes(this.context); + this.operations = + new Resource$Projects$Locations$Featurestores$Operations(this.context); + } + batchReadFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+featurestore}:batchReadFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['featurestore'], + pathParams: ['featurestore'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featurestores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/featurestores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+location}/featurestores:searchFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featurestores = Resource$Projects$Locations$Featurestores; + class Resource$Projects$Locations$Featurestores$Entitytypes { + constructor(context) { + this.context = context; + this.features = + new Resource$Projects$Locations$Featurestores$Entitytypes$Features(this.context); + this.operations = + new Resource$Projects$Locations$Featurestores$Entitytypes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+entityType}:deleteFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+entityType}:exportFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+entityType}:importFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+entityType}:readFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamingReadFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+entityType}:streamingReadFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + writeFeatureValues(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+entityType}:writeFeatureValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featurestores$Entitytypes = Resource$Projects$Locations$Featurestores$Entitytypes; + class Resource$Projects$Locations$Featurestores$Entitytypes$Features { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Featurestores$Entitytypes$Features$Operations(this.context); + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/features:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featurestores$Entitytypes$Features = Resource$Projects$Locations$Featurestores$Entitytypes$Features; + class Resource$Projects$Locations$Featurestores$Entitytypes$Features$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featurestores$Entitytypes$Features$Operations = Resource$Projects$Locations$Featurestores$Entitytypes$Features$Operations; + class Resource$Projects$Locations$Featurestores$Entitytypes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featurestores$Entitytypes$Operations = Resource$Projects$Locations$Featurestores$Entitytypes$Operations; + class Resource$Projects$Locations$Featurestores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Featurestores$Operations = Resource$Projects$Locations$Featurestores$Operations; + class Resource$Projects$Locations$Hyperparametertuningjobs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Hyperparametertuningjobs$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/hyperparameterTuningJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/hyperparameterTuningJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Hyperparametertuningjobs = Resource$Projects$Locations$Hyperparametertuningjobs; + class Resource$Projects$Locations$Hyperparametertuningjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Hyperparametertuningjobs$Operations = Resource$Projects$Locations$Hyperparametertuningjobs$Operations; + class Resource$Projects$Locations$Indexendpoints { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Indexendpoints$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/indexEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deployIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+indexEndpoint}:deployIndex').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + findNeighbors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+indexEndpoint}:findNeighbors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/indexEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + mutateDeployedIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+indexEndpoint}:mutateDeployedIndex').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readIndexDatapoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+indexEndpoint}:readIndexDatapoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeployIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+indexEndpoint}:undeployIndex').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['indexEndpoint'], + pathParams: ['indexEndpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Indexendpoints = Resource$Projects$Locations$Indexendpoints; + class Resource$Projects$Locations$Indexendpoints$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Indexendpoints$Operations = Resource$Projects$Locations$Indexendpoints$Operations; + class Resource$Projects$Locations$Indexes { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Indexes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeDatapoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+index}:removeDatapoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['index'], + pathParams: ['index'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upsertDatapoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+index}:upsertDatapoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['index'], + pathParams: ['index'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Indexes = Resource$Projects$Locations$Indexes; + class Resource$Projects$Locations$Indexes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Indexes$Operations = Resource$Projects$Locations$Indexes$Operations; + class Resource$Projects$Locations$Metadatastores { + constructor(context) { + this.context = context; + this.artifacts = new Resource$Projects$Locations$Metadatastores$Artifacts(this.context); + this.contexts = new Resource$Projects$Locations$Metadatastores$Contexts(this.context); + this.executions = + new Resource$Projects$Locations$Metadatastores$Executions(this.context); + this.metadataSchemas = + new Resource$Projects$Locations$Metadatastores$Metadataschemas(this.context); + this.operations = + new Resource$Projects$Locations$Metadatastores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/metadataStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/metadataStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores = Resource$Projects$Locations$Metadatastores; + class Resource$Projects$Locations$Metadatastores$Artifacts { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Metadatastores$Artifacts$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/artifacts:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryArtifactLineageSubgraph(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+artifact}:queryArtifactLineageSubgraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['artifact'], + pathParams: ['artifact'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores$Artifacts = Resource$Projects$Locations$Metadatastores$Artifacts; + class Resource$Projects$Locations$Metadatastores$Artifacts$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores$Artifacts$Operations = Resource$Projects$Locations$Metadatastores$Artifacts$Operations; + class Resource$Projects$Locations$Metadatastores$Contexts { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Metadatastores$Contexts$Operations(this.context); + } + addContextArtifactsAndExecutions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+context}:addContextArtifactsAndExecutions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['context'], + pathParams: ['context'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addContextChildren(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+context}:addContextChildren').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['context'], + pathParams: ['context'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/contexts:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryContextLineageSubgraph(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+context}:queryContextLineageSubgraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['context'], + pathParams: ['context'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeContextChildren(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+context}:removeContextChildren').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['context'], + pathParams: ['context'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores$Contexts = Resource$Projects$Locations$Metadatastores$Contexts; + class Resource$Projects$Locations$Metadatastores$Contexts$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores$Contexts$Operations = Resource$Projects$Locations$Metadatastores$Contexts$Operations; + class Resource$Projects$Locations$Metadatastores$Executions { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Metadatastores$Executions$Operations(this.context); + } + addExecutionEvents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+execution}:addExecutionEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['execution'], + pathParams: ['execution'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/executions:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryExecutionInputsAndOutputs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+execution}:queryExecutionInputsAndOutputs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['execution'], + pathParams: ['execution'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores$Executions = Resource$Projects$Locations$Metadatastores$Executions; + class Resource$Projects$Locations$Metadatastores$Executions$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores$Executions$Operations = Resource$Projects$Locations$Metadatastores$Executions$Operations; + class Resource$Projects$Locations$Metadatastores$Metadataschemas { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/metadataSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/metadataSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores$Metadataschemas = Resource$Projects$Locations$Metadatastores$Metadataschemas; + class Resource$Projects$Locations$Metadatastores$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Metadatastores$Operations = Resource$Projects$Locations$Metadatastores$Operations; + class Resource$Projects$Locations$Migratableresources { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Migratableresources$Operations(this.context); + } + batchMigrate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/migratableResources:batchMigrate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/migratableResources:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Migratableresources = Resource$Projects$Locations$Migratableresources; + class Resource$Projects$Locations$Migratableresources$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Migratableresources$Operations = Resource$Projects$Locations$Migratableresources$Operations; + class Resource$Projects$Locations$Modeldeploymentmonitoringjobs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Modeldeploymentmonitoringjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/modelDeploymentMonitoringJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/modelDeploymentMonitoringJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchModelDeploymentMonitoringStatsAnomalies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['modelDeploymentMonitoringJob'], + pathParams: ['modelDeploymentMonitoringJob'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Modeldeploymentmonitoringjobs = Resource$Projects$Locations$Modeldeploymentmonitoringjobs; + class Resource$Projects$Locations$Modeldeploymentmonitoringjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Modeldeploymentmonitoringjobs$Operations = Resource$Projects$Locations$Modeldeploymentmonitoringjobs$Operations; + class Resource$Projects$Locations$Modelmonitors { + constructor(context) { + this.context = context; + this.modelMonitoringJobs = + new Resource$Projects$Locations$Modelmonitors$Modelmonitoringjobs(this.context); + this.operations = + new Resource$Projects$Locations$Modelmonitors$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/modelMonitors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/modelMonitors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchModelMonitoringAlerts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+modelMonitor}:searchModelMonitoringAlerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['modelMonitor'], + pathParams: ['modelMonitor'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchModelMonitoringStats(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+modelMonitor}:searchModelMonitoringStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['modelMonitor'], + pathParams: ['modelMonitor'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Modelmonitors = Resource$Projects$Locations$Modelmonitors; + class Resource$Projects$Locations$Modelmonitors$Modelmonitoringjobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/modelMonitoringJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/modelMonitoringJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Modelmonitors$Modelmonitoringjobs = Resource$Projects$Locations$Modelmonitors$Modelmonitoringjobs; + class Resource$Projects$Locations$Modelmonitors$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Modelmonitors$Operations = Resource$Projects$Locations$Modelmonitors$Operations; + class Resource$Projects$Locations$Models { + constructor(context) { + this.context = context; + this.evaluations = new Resource$Projects$Locations$Models$Evaluations(this.context); + this.operations = new Resource$Projects$Locations$Models$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/models:copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteVersion(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:deleteVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listVersions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:listVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + mergeVersionAliases(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:mergeVersionAliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateExplanationDataset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:updateExplanationDataset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/models:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Models = Resource$Projects$Locations$Models; + class Resource$Projects$Locations$Models$Evaluations { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Models$Evaluations$Operations(this.context); + this.slices = new Resource$Projects$Locations$Models$Evaluations$Slices(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/evaluations:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Models$Evaluations = Resource$Projects$Locations$Models$Evaluations; + class Resource$Projects$Locations$Models$Evaluations$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Models$Evaluations$Operations = Resource$Projects$Locations$Models$Evaluations$Operations; + class Resource$Projects$Locations$Models$Evaluations$Slices { + constructor(context) { + this.context = context; + } + batchImport(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:batchImport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/slices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Models$Evaluations$Slices = Resource$Projects$Locations$Models$Evaluations$Slices; + class Resource$Projects$Locations$Models$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Models$Operations = Resource$Projects$Locations$Models$Operations; + class Resource$Projects$Locations$Nasjobs { + constructor(context) { + this.context = context; + this.nasTrialDetails = + new Resource$Projects$Locations$Nasjobs$Nastrialdetails(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/nasJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/nasJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Nasjobs = Resource$Projects$Locations$Nasjobs; + class Resource$Projects$Locations$Nasjobs$Nastrialdetails { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/nasTrialDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Nasjobs$Nastrialdetails = Resource$Projects$Locations$Nasjobs$Nastrialdetails; + class Resource$Projects$Locations$Notebookexecutionjobs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Notebookexecutionjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notebookExecutionJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateAccessToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notebookExecutionJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:reportEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Notebookexecutionjobs = Resource$Projects$Locations$Notebookexecutionjobs; + class Resource$Projects$Locations$Notebookexecutionjobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Notebookexecutionjobs$Operations = Resource$Projects$Locations$Notebookexecutionjobs$Operations; + class Resource$Projects$Locations$Notebookruntimes { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Notebookruntimes$Operations(this.context); + } + assign(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notebookRuntimes:assign').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateAccessToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notebookRuntimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:reportEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Notebookruntimes = Resource$Projects$Locations$Notebookruntimes; + class Resource$Projects$Locations$Notebookruntimes$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Notebookruntimes$Operations = Resource$Projects$Locations$Notebookruntimes$Operations; + class Resource$Projects$Locations$Notebookruntimetemplates { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Notebookruntimetemplates$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notebookRuntimeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notebookRuntimeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Notebookruntimetemplates = Resource$Projects$Locations$Notebookruntimetemplates; + class Resource$Projects$Locations$Notebookruntimetemplates$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Notebookruntimetemplates$Operations = Resource$Projects$Locations$Notebookruntimetemplates$Operations; + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Persistentresources { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Persistentresources$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/persistentResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/persistentResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reboot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:reboot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Persistentresources = Resource$Projects$Locations$Persistentresources; + class Resource$Projects$Locations$Persistentresources$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Persistentresources$Operations = Resource$Projects$Locations$Persistentresources$Operations; + class Resource$Projects$Locations$Pipelinejobs { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Pipelinejobs$Operations(this.context); + } + batchCancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/pipelineJobs:batchCancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/pipelineJobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/pipelineJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/pipelineJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Pipelinejobs = Resource$Projects$Locations$Pipelinejobs; + class Resource$Projects$Locations$Pipelinejobs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Pipelinejobs$Operations = Resource$Projects$Locations$Pipelinejobs$Operations; + class Resource$Projects$Locations$Publishers { + constructor(context) { + this.context = context; + this.models = new Resource$Projects$Locations$Publishers$Models(this.context); + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Publishers = Resource$Projects$Locations$Publishers; + class Resource$Projects$Locations$Publishers$Models { + constructor(context) { + this.context = context; + } + computeTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:computeTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:countTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:generateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:rawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + serverStreamingPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:serverStreamingPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamGenerateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:streamGenerateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamRawPredict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:streamRawPredict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Publishers$Models = Resource$Projects$Locations$Publishers$Models; + class Resource$Projects$Locations$Ragcorpora { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Ragcorpora$Operations(this.context); + this.ragFiles = new Resource$Projects$Locations$Ragcorpora$Ragfiles(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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/ragCorpora').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/ragCorpora').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Ragcorpora = Resource$Projects$Locations$Ragcorpora; + class Resource$Projects$Locations$Ragcorpora$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Ragcorpora$Operations = Resource$Projects$Locations$Ragcorpora$Operations; + class Resource$Projects$Locations$Ragcorpora$Ragfiles { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Ragcorpora$Ragfiles$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/ragFiles:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/ragFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Ragcorpora$Ragfiles = Resource$Projects$Locations$Ragcorpora$Ragfiles; + class Resource$Projects$Locations$Ragcorpora$Ragfiles$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Ragcorpora$Ragfiles$Operations = Resource$Projects$Locations$Ragcorpora$Ragfiles$Operations; + class Resource$Projects$Locations$Reasoningengines { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Reasoningengines$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/reasoningEngines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/reasoningEngines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Reasoningengines = Resource$Projects$Locations$Reasoningengines; + class Resource$Projects$Locations$Reasoningengines$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Reasoningengines$Operations = Resource$Projects$Locations$Reasoningengines$Operations; + class Resource$Projects$Locations$Schedules { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Schedules$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Schedules = Resource$Projects$Locations$Schedules; + class Resource$Projects$Locations$Schedules$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Schedules$Operations = Resource$Projects$Locations$Schedules$Operations; + class Resource$Projects$Locations$Solvers { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Solvers$Operations(this.context); + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Solvers = Resource$Projects$Locations$Solvers; + class Resource$Projects$Locations$Solvers$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Solvers$Operations = Resource$Projects$Locations$Solvers$Operations; + class Resource$Projects$Locations$Specialistpools { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Specialistpools$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/specialistPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/specialistPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Specialistpools = Resource$Projects$Locations$Specialistpools; + class Resource$Projects$Locations$Specialistpools$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Specialistpools$Operations = Resource$Projects$Locations$Specialistpools$Operations; + class Resource$Projects$Locations$Studies { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Studies$Operations(this.context); + this.trials = new Resource$Projects$Locations$Studies$Trials(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/studies:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Studies = Resource$Projects$Locations$Studies; + class Resource$Projects$Locations$Studies$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Studies$Operations = Resource$Projects$Locations$Studies$Operations; + class Resource$Projects$Locations$Studies$Trials { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Studies$Trials$Operations(this.context); + } + addTrialMeasurement(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+trialName}:addTrialMeasurement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['trialName'], + pathParams: ['trialName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + checkTrialEarlyStoppingState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+trialName}:checkTrialEarlyStoppingState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['trialName'], + pathParams: ['trialName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + complete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listOptimalTrials(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/trials:listOptimalTrials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/trials:suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Studies$Trials = Resource$Projects$Locations$Studies$Trials; + class Resource$Projects$Locations$Studies$Trials$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Studies$Trials$Operations = Resource$Projects$Locations$Studies$Trials$Operations; + class Resource$Projects$Locations$Tensorboards { + constructor(context) { + this.context = context; + this.experiments = + new Resource$Projects$Locations$Tensorboards$Experiments(this.context); + this.operations = new Resource$Projects$Locations$Tensorboards$Operations(this.context); + } + batchRead(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+tensorboard}:batchRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboard'], + pathParams: ['tensorboard'], + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tensorboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tensorboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readSize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+tensorboard}:readSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboard'], + pathParams: ['tensorboard'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readUsage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+tensorboard}:readUsage').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboard'], + pathParams: ['tensorboard'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tensorboards = Resource$Projects$Locations$Tensorboards; + class Resource$Projects$Locations$Tensorboards$Experiments { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Tensorboards$Experiments$Operations(this.context); + this.runs = new Resource$Projects$Locations$Tensorboards$Experiments$Runs(this.context); + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+tensorboardExperiment}:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboardExperiment'], + pathParams: ['tensorboardExperiment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tensorboards$Experiments = Resource$Projects$Locations$Tensorboards$Experiments; + class Resource$Projects$Locations$Tensorboards$Experiments$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tensorboards$Experiments$Operations = Resource$Projects$Locations$Tensorboards$Experiments$Operations; + class Resource$Projects$Locations$Tensorboards$Experiments$Runs { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Tensorboards$Experiments$Runs$Operations(this.context); + this.timeSeries = + new Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries(this.context); + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/runs:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+tensorboardRun}:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboardRun'], + pathParams: ['tensorboardRun'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tensorboards$Experiments$Runs = Resource$Projects$Locations$Tensorboards$Experiments$Runs; + class Resource$Projects$Locations$Tensorboards$Experiments$Runs$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tensorboards$Experiments$Runs$Operations = Resource$Projects$Locations$Tensorboards$Experiments$Runs$Operations; + class Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportTensorboardTimeSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+tensorboardTimeSeries}:exportTensorboardTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboardTimeSeries'], + pathParams: ['tensorboardTimeSeries'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + read(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+tensorboardTimeSeries}:read').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['tensorboardTimeSeries'], + pathParams: ['tensorboardTimeSeries'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readBlobData(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+timeSeries}:readBlobData').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['timeSeries'], + pathParams: ['timeSeries'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries = Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries; + class Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries$Operations = Resource$Projects$Locations$Tensorboards$Experiments$Runs$Timeseries$Operations; + class Resource$Projects$Locations$Tensorboards$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tensorboards$Operations = Resource$Projects$Locations$Tensorboards$Operations; + class Resource$Projects$Locations$Trainingpipelines { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Trainingpipelines$Operations(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/trainingPipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/trainingPipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Trainingpipelines = Resource$Projects$Locations$Trainingpipelines; + class Resource$Projects$Locations$Trainingpipelines$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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Trainingpipelines$Operations = Resource$Projects$Locations$Trainingpipelines$Operations; + class Resource$Projects$Locations$Tuningjobs { + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tuningJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tuningJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Projects$Locations$Tuningjobs = Resource$Projects$Locations$Tuningjobs; + class Resource$Publishers { + constructor(context) { + this.context = context; + this.models = new Resource$Publishers$Models(this.context); + } + } + aiplatform_v1beta1.Resource$Publishers = Resource$Publishers; + class Resource$Publishers$Models { + constructor(context) { + this.context = context; + } + computeTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:computeTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countTokens(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+endpoint}:countTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:generateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + streamGenerateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+model}:streamGenerateContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + aiplatform_v1beta1.Resource$Publishers$Models = Resource$Publishers$Models; +})(aiplatform_v1beta1 || (exports.aiplatform_v1beta1 = aiplatform_v1beta1 = {})); + + +/***/ }), + +/***/ 65585: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.airquality_v1 = exports.auth = exports.airquality = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(17456); +Object.defineProperty(exports, "airquality_v1", ({ enumerable: true, get: function () { return v1_1.airquality_v1; } })); +exports.VERSIONS = { + v1: v1_1.airquality_v1.Airquality, +}; +function airquality(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('airquality', versionOrOptions, exports.VERSIONS, this); +} +exports.airquality = airquality; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 17456: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.airquality_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var airquality_v1; +(function (airquality_v1) { + /** + * Air Quality API + * + * The Air Quality API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const airquality = google.airquality('v1'); + * ``` + */ + class Airquality { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.currentConditions = new Resource$Currentconditions(this.context); + this.forecast = new Resource$Forecast(this.context); + this.history = new Resource$History(this.context); + this.mapTypes = new Resource$Maptypes(this.context); + } + } + airquality_v1.Airquality = Airquality; + class Resource$Currentconditions { + 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://airquality.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/currentConditions:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + airquality_v1.Resource$Currentconditions = Resource$Currentconditions; + class Resource$Forecast { + 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://airquality.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forecast:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + airquality_v1.Resource$Forecast = Resource$Forecast; + class Resource$History { + 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://airquality.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/history:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + airquality_v1.Resource$History = Resource$History; + class Resource$Maptypes { + constructor(context) { + this.context = context; + this.heatmapTiles = new Resource$Maptypes$Heatmaptiles(this.context); + } + } + airquality_v1.Resource$Maptypes = Resource$Maptypes; + class Resource$Maptypes$Heatmaptiles { + constructor(context) { + this.context = context; + } + lookupHeatmapTile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://airquality.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['mapType', 'zoom', 'x', 'y'], + pathParams: ['mapType', 'x', 'y', 'zoom'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + airquality_v1.Resource$Maptypes$Heatmaptiles = Resource$Maptypes$Heatmaptiles; +})(airquality_v1 || (exports.airquality_v1 = airquality_v1 = {})); + + +/***/ }), + +/***/ 87901: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1beta1_1 = __nccwpck_require__(25151); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 25151: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = alertcenter_v1beta1 = {})); + + +/***/ }), + +/***/ 62426: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.alloydb_v1beta = exports.alloydb_v1alpha = exports.alloydb_v1 = exports.auth = exports.alloydb = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(66630); +Object.defineProperty(exports, "alloydb_v1", ({ enumerable: true, get: function () { return v1_1.alloydb_v1; } })); +const v1alpha_1 = __nccwpck_require__(49844); +Object.defineProperty(exports, "alloydb_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.alloydb_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(22801); +Object.defineProperty(exports, "alloydb_v1beta", ({ enumerable: true, get: function () { return v1beta_1.alloydb_v1beta; } })); +exports.VERSIONS = { + v1: v1_1.alloydb_v1.Alloydb, + v1alpha: v1alpha_1.alloydb_v1alpha.Alloydb, + v1beta: v1beta_1.alloydb_v1beta.Alloydb, +}; +function alloydb(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('alloydb', versionOrOptions, exports.VERSIONS, this); +} +exports.alloydb = alloydb; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 66630: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.alloydb_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var alloydb_v1; +(function (alloydb_v1) { + /** + * AlloyDB API + * + * AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const alloydb = google.alloydb('v1'); + * ``` + */ + class Alloydb { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + alloydb_v1.Alloydb = Alloydb; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + alloydb_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Backups(this.context); + this.clusters = new Resource$Projects$Locations$Clusters(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.supportedDatabaseFlags = + new Resource$Projects$Locations$Supporteddatabaseflags(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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backups { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1.Resource$Projects$Locations$Backups = Resource$Projects$Locations$Backups; + class Resource$Projects$Locations$Clusters { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Clusters$Instances(this.context); + this.users = new Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createsecondary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clusters:createsecondary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + promote(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:promote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clusters:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + switchover(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:switchover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; + class Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createsecondary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances:createsecondary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getConnectionInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectionInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + injectFault(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:injectFault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1.Resource$Projects$Locations$Clusters$Instances = Resource$Projects$Locations$Clusters$Instances; + class Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1.Resource$Projects$Locations$Clusters$Users = Resource$Projects$Locations$Clusters$Users; + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Supporteddatabaseflags { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/supportedDatabaseFlags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1.Resource$Projects$Locations$Supporteddatabaseflags = Resource$Projects$Locations$Supporteddatabaseflags; +})(alloydb_v1 || (exports.alloydb_v1 = alloydb_v1 = {})); + + +/***/ }), + +/***/ 49844: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.alloydb_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__(40524); +var alloydb_v1alpha; +(function (alloydb_v1alpha) { + /** + * AlloyDB API + * + * AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const alloydb = google.alloydb('v1alpha'); + * ``` + */ + class Alloydb { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + alloydb_v1alpha.Alloydb = Alloydb; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + alloydb_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Backups(this.context); + this.clusters = new Resource$Projects$Locations$Clusters(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.supportedDatabaseFlags = + new Resource$Projects$Locations$Supporteddatabaseflags(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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backups { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1alpha.Resource$Projects$Locations$Backups = Resource$Projects$Locations$Backups; + class Resource$Projects$Locations$Clusters { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Clusters$Instances(this.context); + this.users = new Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createsecondary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clusters:createsecondary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + promote(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:promote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clusters:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + switchover(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:switchover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1alpha.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; + class Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createsecondary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/instances:createsecondary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getConnectionInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connectionInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + injectFault(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:injectFault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1alpha.Resource$Projects$Locations$Clusters$Instances = Resource$Projects$Locations$Clusters$Instances; + class Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1alpha.Resource$Projects$Locations$Clusters$Users = Resource$Projects$Locations$Clusters$Users; + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Supporteddatabaseflags { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/supportedDatabaseFlags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1alpha.Resource$Projects$Locations$Supporteddatabaseflags = Resource$Projects$Locations$Supporteddatabaseflags; +})(alloydb_v1alpha || (exports.alloydb_v1alpha = alloydb_v1alpha = {})); + + +/***/ }), + +/***/ 22801: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.alloydb_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__(40524); +var alloydb_v1beta; +(function (alloydb_v1beta) { + /** + * AlloyDB API + * + * AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const alloydb = google.alloydb('v1beta'); + * ``` + */ + class Alloydb { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + alloydb_v1beta.Alloydb = Alloydb; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + alloydb_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Backups(this.context); + this.clusters = new Resource$Projects$Locations$Clusters(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.supportedDatabaseFlags = + new Resource$Projects$Locations$Supporteddatabaseflags(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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backups { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1beta.Resource$Projects$Locations$Backups = Resource$Projects$Locations$Backups; + class Resource$Projects$Locations$Clusters { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Clusters$Instances(this.context); + this.users = new Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createsecondary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/clusters:createsecondary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + promote(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:promote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/clusters:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + switchover(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:switchover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1beta.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; + class Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createsecondary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/instances:createsecondary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getConnectionInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/connectionInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + injectFault(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:injectFault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1beta.Resource$Projects$Locations$Clusters$Instances = Resource$Projects$Locations$Clusters$Instances; + class Resource$Projects$Locations$Clusters$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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1beta.Resource$Projects$Locations$Clusters$Users = Resource$Projects$Locations$Clusters$Users; + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Supporteddatabaseflags { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/supportedDatabaseFlags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + alloydb_v1beta.Resource$Projects$Locations$Supporteddatabaseflags = Resource$Projects$Locations$Supporteddatabaseflags; +})(alloydb_v1beta || (exports.alloydb_v1beta = alloydb_v1beta = {})); + + +/***/ }), + +/***/ 252: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v3_1 = __nccwpck_require__(8074); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 8074: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = analytics_v3 = {})); + + +/***/ }), + +/***/ 91218: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1alpha_1 = __nccwpck_require__(25791); +Object.defineProperty(exports, "analyticsadmin_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.analyticsadmin_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(16801); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 25791: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var analyticsadmin_v1alpha; +(function (analyticsadmin_v1alpha) { + /** + * Google Analytics Admin API + * + * Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning. + * + * @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); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$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', + apiVersion: '', + }, 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.adSenseLinks = new Resource$Properties$Adsenselinks(this.context); + this.audiences = new Resource$Properties$Audiences(this.context); + this.bigQueryLinks = new Resource$Properties$Bigquerylinks(this.context); + this.calculatedMetrics = new Resource$Properties$Calculatedmetrics(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.keyEvents = new Resource$Properties$Keyevents(this.context); + this.rollupPropertySourceLinks = + new Resource$Properties$Rolluppropertysourcelinks(this.context); + this.searchAds360Links = new Resource$Properties$Searchads360links(this.context); + this.subpropertyEventFilters = + new Resource$Properties$Subpropertyeventfilters(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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createRollupProperty(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:createRollupProperty').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchConnectedGa4Property(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:fetchConnectedGa4Property').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + provisionSubproperty(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:provisionSubproperty').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Adsenselinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/adSenseLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/adSenseLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Adsenselinks = Resource$Properties$Adsenselinks; + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Bigquerylinks = Resource$Properties$Bigquerylinks; + class Resource$Properties$Calculatedmetrics { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/calculatedMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/calculatedMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Calculatedmetrics = Resource$Properties$Calculatedmetrics; + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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.eventCreateRules = + new Resource$Properties$Datastreams$Eventcreaterules(this.context); + this.eventEditRules = new Resource$Properties$Datastreams$Eventeditrules(this.context); + this.measurementProtocolSecrets = + new Resource$Properties$Datastreams$Measurementprotocolsecrets(this.context); + this.sKAdNetworkConversionValueSchema = + new Resource$Properties$Datastreams$Skadnetworkconversionvalueschema(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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDataRedactionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateDataRedactionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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$Eventcreaterules { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/eventCreateRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/eventCreateRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Eventcreaterules = Resource$Properties$Datastreams$Eventcreaterules; + class Resource$Properties$Datastreams$Eventeditrules { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/eventEditRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/eventEditRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/eventEditRules:reorder').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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$Datastreams$Eventeditrules = Resource$Properties$Datastreams$Eventeditrules; + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Datastreams$Skadnetworkconversionvalueschema { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/sKAdNetworkConversionValueSchema').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/sKAdNetworkConversionValueSchema').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Skadnetworkconversionvalueschema = Resource$Properties$Datastreams$Skadnetworkconversionvalueschema; + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Keyevents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/keyEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/keyEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Keyevents = Resource$Properties$Keyevents; + class Resource$Properties$Rolluppropertysourcelinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/rollupPropertySourceLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/rollupPropertySourceLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Rolluppropertysourcelinks = Resource$Properties$Rolluppropertysourcelinks; + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Subpropertyeventfilters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/subpropertyEventFilters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/subpropertyEventFilters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Subpropertyeventfilters = Resource$Properties$Subpropertyeventfilters; +})(analyticsadmin_v1alpha || (exports.analyticsadmin_v1alpha = analyticsadmin_v1alpha = {})); + + +/***/ }), + +/***/ 16801: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var analyticsadmin_v1beta; +(function (analyticsadmin_v1beta) { + /** + * Google Analytics Admin API + * + * Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning. + * + * @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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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); + this.keyEvents = new Resource$Properties$Keyevents(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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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; + class Resource$Properties$Keyevents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/keyEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/keyEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Keyevents = Resource$Properties$Keyevents; +})(analyticsadmin_v1beta || (exports.analyticsadmin_v1beta = analyticsadmin_v1beta = {})); + + +/***/ }), + +/***/ 12423: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1alpha_1 = __nccwpck_require__(82093); +Object.defineProperty(exports, "analyticsdata_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.analyticsdata_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(36409); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 82093: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = analyticsdata_v1alpha = {})); + + +/***/ }), + +/***/ 36409: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var analyticsdata_v1beta; +(function (analyticsdata_v1beta) { + /** + * Google Analytics Data API + * + * Accesses report data in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning. + * + * @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; + this.audienceExports = new Resource$Properties$Audienceexports(this.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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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; + class Resource$Properties$Audienceexports { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/audienceExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://analyticsdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/audienceExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsdata_v1beta.Resource$Properties$Audienceexports = Resource$Properties$Audienceexports; +})(analyticsdata_v1beta || (exports.analyticsdata_v1beta = analyticsdata_v1beta = {})); + + +/***/ }), + +/***/ 24445: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(94723); +Object.defineProperty(exports, "analyticshub_v1", ({ enumerable: true, get: function () { return v1_1.analyticshub_v1; } })); +const v1beta1_1 = __nccwpck_require__(3200); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 94723: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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); + this.subscriptions = new Resource$Projects$Locations$Subscriptions(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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listSubscriptions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listSubscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listSubscriptions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listSubscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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; + class Resource$Projects$Locations$Subscriptions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + refresh(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:refresh').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + revoke(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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$Subscriptions = Resource$Projects$Locations$Subscriptions; +})(analyticshub_v1 || (exports.analyticshub_v1 = analyticshub_v1 = {})); + + +/***/ }), + +/***/ 3200: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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 = analyticshub_v1beta1 = {})); + + +/***/ }), + +/***/ 35568: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v4_1 = __nccwpck_require__(82755); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 82755: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = analyticsreporting_v4 = {})); + + +/***/ }), + +/***/ 30205: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(94747); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 94747: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSimLockState(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:getSimLockState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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 = androiddeviceprovisioning_v1 = {})); + + +/***/ }), + +/***/ 1792: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(57455); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57455: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = androidenterprise_v1 = {})); + + +/***/ }), + +/***/ 27951: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(3849); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 3849: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.provisioningInfo = new Resource$Provisioninginfo(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.migrationTokens = new Resource$Enterprises$Migrationtokens(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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Migrationtokens { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/migrationTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/migrationTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Migrationtokens = Resource$Enterprises$Migrationtokens; + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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$Provisioninginfo { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Provisioninginfo = Resource$Provisioninginfo; + 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', + apiVersion: '', + }, 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 = androidmanagement_v1 = {})); + + +/***/ }), + +/***/ 64731: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1_1 = __nccwpck_require__(81885); +Object.defineProperty(exports, "androidpublisher_v1_1", ({ enumerable: true, get: function () { return v1_1_1.androidpublisher_v1_1; } })); +const v1_1 = __nccwpck_require__(28172); +Object.defineProperty(exports, "androidpublisher_v1", ({ enumerable: true, get: function () { return v1_1.androidpublisher_v1; } })); +const v2_1 = __nccwpck_require__(66988); +Object.defineProperty(exports, "androidpublisher_v2", ({ enumerable: true, get: function () { return v2_1.androidpublisher_v2; } })); +const v3_1 = __nccwpck_require__(12460); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 81885: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = androidpublisher_v1_1 = {})); + + +/***/ }), + +/***/ 28172: +/***/ ((__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 = androidpublisher_v1 = {})); + + +/***/ }), + +/***/ 66988: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = androidpublisher_v2 = {})); + + +/***/ }), + +/***/ 12460: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.apprecovery = new Resource$Apprecovery(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); + } + dataSafety(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/dataSafety').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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 = 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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$Apprecovery { + constructor(context) { + this.context = context; + } + addTargeting(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/appRecoveries/{appRecoveryId}:addTargeting').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['packageName', 'appRecoveryId'], + pathParams: ['appRecoveryId', 'packageName'], + 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}/appRecoveries/{appRecoveryId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['packageName', 'appRecoveryId'], + pathParams: ['appRecoveryId', 'packageName'], + 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}/appRecoveries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + deploy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['packageName', 'appRecoveryId'], + pathParams: ['appRecoveryId', '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}/appRecoveries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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$Apprecovery = Resource$Apprecovery; + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'POST', + apiVersion: '', + }, 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}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Tracks = Resource$Edits$Tracks; + class Resource$Externaltransactions { + constructor(context) { + this.context = context; + } + createexternaltransaction(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+parent}/externalTransactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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; + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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); + } + } + batchMigratePrices(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:batchMigratePrices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + batchUpdateStates(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:batchUpdateStates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + batchUpdateStates(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:batchUpdateStates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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); + } + } + 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/subscriptionsv2/tokens/{token}:revoke').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Users = Resource$Users; +})(androidpublisher_v3 || (exports.androidpublisher_v3 = androidpublisher_v3 = {})); + + +/***/ }), + +/***/ 70842: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(25868); +Object.defineProperty(exports, "apigateway_v1", ({ enumerable: true, get: function () { return v1_1.apigateway_v1; } })); +const v1beta_1 = __nccwpck_require__(91791); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 25868: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var apigateway_v1; +(function (apigateway_v1) { + /** + * API Gateway API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apigateway = google.apigateway('v1'); + * ``` + */ + class Apigateway { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apigateway_v1.Apigateway = Apigateway; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apigateway_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.apis = new Resource$Projects$Locations$Apis(this.context); + this.gateways = new Resource$Projects$Locations$Gateways(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(apigateway_v1 || (exports.apigateway_v1 = apigateway_v1 = {})); + + +/***/ }), + +/***/ 91791: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var apigateway_v1beta; +(function (apigateway_v1beta) { + /** + * API Gateway API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apigateway = google.apigateway('v1beta'); + * ``` + */ + class Apigateway { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apigateway_v1beta.Apigateway = Apigateway; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apigateway_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.apis = new Resource$Projects$Locations$Apis(this.context); + this.gateways = new Resource$Projects$Locations$Gateways(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Apis { + constructor(context) { + this.context = context; + this.configs = new Resource$Projects$Locations$Apis$Configs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations$Apis = Resource$Projects$Locations$Apis; + class Resource$Projects$Locations$Apis$Configs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations$Apis$Configs = Resource$Projects$Locations$Apis$Configs; + class Resource$Projects$Locations$Gateways { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(apigateway_v1beta || (exports.apigateway_v1beta = apigateway_v1beta = {})); + + +/***/ }), + +/***/ 94767: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(99144); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 99144: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.apigeeregistry_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var apigeeregistry_v1; +(function (apigeeregistry_v1) { + /** + * Apigee Registry API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apigeeregistry = google.apigeeregistry('v1'); + * ``` + */ + class Apigeeregistry { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apigeeregistry_v1.Apigeeregistry = Apigeeregistry; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apigeeregistry_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.apis = new Resource$Projects$Locations$Apis(this.context); + this.artifacts = new Resource$Projects$Locations$Artifacts(this.context); + this.documents = new Resource$Projects$Locations$Documents(this.context); + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtime = new Resource$Projects$Locations$Runtime(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Apis { + constructor(context) { + this.context = context; + this.artifacts = new Resource$Projects$Locations$Apis$Artifacts(this.context); + this.deployments = new Resource$Projects$Locations$Apis$Deployments(this.context); + this.versions = new Resource$Projects$Locations$Apis$Versions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis = Resource$Projects$Locations$Apis; + class Resource$Projects$Locations$Apis$Artifacts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Artifacts = Resource$Projects$Locations$Apis$Artifacts; + class Resource$Projects$Locations$Apis$Deployments { + constructor(context) { + this.context = context; + this.artifacts = + new Resource$Projects$Locations$Apis$Deployments$Artifacts(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteRevision(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listRevisions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + tagRevision(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:tagRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Deployments = Resource$Projects$Locations$Apis$Deployments; + class Resource$Projects$Locations$Apis$Deployments$Artifacts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Deployments$Artifacts = Resource$Projects$Locations$Apis$Deployments$Artifacts; + class Resource$Projects$Locations$Apis$Versions { + constructor(context) { + this.context = context; + this.artifacts = new Resource$Projects$Locations$Apis$Versions$Artifacts(this.context); + this.specs = new Resource$Projects$Locations$Apis$Versions$Specs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions = Resource$Projects$Locations$Apis$Versions; + class Resource$Projects$Locations$Apis$Versions$Artifacts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions$Artifacts = Resource$Projects$Locations$Apis$Versions$Artifacts; + class Resource$Projects$Locations$Apis$Versions$Specs { + constructor(context) { + this.context = context; + this.artifacts = + new Resource$Projects$Locations$Apis$Versions$Specs$Artifacts(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/specs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteRevision(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/specs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listRevisions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + tagRevision(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:tagRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions$Specs = Resource$Projects$Locations$Apis$Versions$Specs; + class Resource$Projects$Locations$Apis$Versions$Specs$Artifacts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions$Specs$Artifacts = Resource$Projects$Locations$Apis$Versions$Specs$Artifacts; + class Resource$Projects$Locations$Artifacts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Artifacts = Resource$Projects$Locations$Artifacts; + class Resource$Projects$Locations$Documents { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Documents = Resource$Projects$Locations$Documents; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtime { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Runtime = Resource$Projects$Locations$Runtime; +})(apigeeregistry_v1 || (exports.apigeeregistry_v1 = apigeeregistry_v1 = {})); + + +/***/ }), + +/***/ 16121: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v2_1 = __nccwpck_require__(79812); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 79812: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apikeys_v2.Resource$Keys = Resource$Keys; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apikeys_v2.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apikeys_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.keys = new Resource$Projects$Locations$Keys(this.context); + } + } + apikeys_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Keys { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getKeyString(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/keyString').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 = apikeys_v2 = {})); + + +/***/ }), + +/***/ 92775: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.apim_v1alpha = exports.auth = exports.apim = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1alpha_1 = __nccwpck_require__(86796); +Object.defineProperty(exports, "apim_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.apim_v1alpha; } })); +exports.VERSIONS = { + v1alpha: v1alpha_1.apim_v1alpha.Apim, +}; +function apim(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('apim', versionOrOptions, exports.VERSIONS, this); +} +exports.apim = apim; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 86796: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.apim_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__(40524); +var apim_v1alpha; +(function (apim_v1alpha) { + /** + * API Management API + * + * Enables users to discover shadow APIs in existing Google Cloud infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apim = google.apim('v1alpha'); + * ``` + */ + class Apim { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apim_v1alpha.Apim = Apim; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apim_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.observationJobs = new Resource$Projects$Locations$Observationjobs(this.context); + this.observationSources = + new Resource$Projects$Locations$Observationsources(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://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listApiObservationTags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}:listApiObservationTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apim_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Observationjobs { + constructor(context) { + this.context = context; + this.apiObservations = + new Resource$Projects$Locations$Observationjobs$Apiobservations(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://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/observationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + 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://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/observationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apim_v1alpha.Resource$Projects$Locations$Observationjobs = Resource$Projects$Locations$Observationjobs; + class Resource$Projects$Locations$Observationjobs$Apiobservations { + constructor(context) { + this.context = context; + this.apiOperations = + new Resource$Projects$Locations$Observationjobs$Apiobservations$Apioperations(this.context); + } + batchEditTags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/apiObservations:batchEditTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/apiObservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apim_v1alpha.Resource$Projects$Locations$Observationjobs$Apiobservations = Resource$Projects$Locations$Observationjobs$Apiobservations; + class Resource$Projects$Locations$Observationjobs$Apiobservations$Apioperations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/apiOperations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apim_v1alpha.Resource$Projects$Locations$Observationjobs$Apiobservations$Apioperations = Resource$Projects$Locations$Observationjobs$Apiobservations$Apioperations; + class Resource$Projects$Locations$Observationsources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/observationSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/observationSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apim_v1alpha.Resource$Projects$Locations$Observationsources = Resource$Projects$Locations$Observationsources; + 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://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apim.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apim_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(apim_v1alpha || (exports.apim_v1alpha = apim_v1alpha = {})); + + +/***/ }), + +/***/ 54467: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(86030); +Object.defineProperty(exports, "appengine_v1", ({ enumerable: true, get: function () { return v1_1.appengine_v1; } })); +const v1alpha_1 = __nccwpck_require__(80039); +Object.defineProperty(exports, "appengine_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.appengine_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(23506); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 86030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.appengine_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var appengine_v1; +(function (appengine_v1) { + /** + * App Engine Admin API + * + * Provisions and manages developers' App Engine applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const appengine = google.appengine('v1'); + * ``` + */ + class Appengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.apps = new Resource$Apps(this.context); + this.projects = new Resource$Projects(this.context); + } + } + appengine_v1.Appengine = Appengine; + class Resource$Apps { + constructor(context) { + this.context = context; + this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); + this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); + this.domainMappings = new Resource$Apps$Domainmappings(this.context); + this.firewall = new Resource$Apps$Firewall(this.context); + this.locations = new Resource$Apps$Locations(this.context); + this.operations = new Resource$Apps$Operations(this.context); + this.services = new Resource$Apps$Services(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listRuntimes(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listRuntimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + repair(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps = Resource$Apps; + class Resource$Apps$Authorizedcertificates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Firewall { + constructor(context) { + this.context = context; + this.ingressRules = new Resource$Apps$Firewall$Ingressrules(this.context); + } + } + appengine_v1.Resource$Apps$Firewall = Resource$Apps$Firewall; + class Resource$Apps$Firewall$Ingressrules { + constructor(context) { + this.context = context; + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; + class Resource$Apps$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Locations = Resource$Apps$Locations; + class Resource$Apps$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Operations = Resource$Apps$Operations; + class Resource$Apps$Services { + constructor(context) { + this.context = context; + this.versions = new Resource$Apps$Services$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Services = Resource$Apps$Services; + class Resource$Apps$Services$Versions { + constructor(context) { + this.context = context; + this.instances = new Resource$Apps$Services$Versions$Instances(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; + class Resource$Apps$Services$Versions$Instances { + constructor(context) { + this.context = context; + } + debug(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Services$Versions$Instances = Resource$Apps$Services$Versions$Instances; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + appengine_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.applications = new Resource$Projects$Locations$Applications(this.context); + } + } + appengine_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Applications { + constructor(context) { + this.context = context; + this.authorizedDomains = + new Resource$Projects$Locations$Applications$Authorizeddomains(this.context); + } + } + appengine_v1.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$Applications$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Projects$Locations$Applications$Authorizeddomains = Resource$Projects$Locations$Applications$Authorizeddomains; +})(appengine_v1 || (exports.appengine_v1 = appengine_v1 = {})); + + +/***/ }), + +/***/ 80039: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1alpha.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1alpha.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_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.applications = new Resource$Projects$Locations$Applications(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/projects/{projectsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/projects/{projectsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId'], + pathParams: ['projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Applications { + constructor(context) { + this.context = context; + this.authorizedDomains = + new Resource$Projects$Locations$Applications$Authorizeddomains(this.context); + } + } + appengine_v1alpha.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$Applications$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1alpha.Resource$Projects$Locations$Applications$Authorizeddomains = Resource$Projects$Locations$Applications$Authorizeddomains; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'operationsId'], + pathParams: ['locationsId', 'operationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/projects/{projectsId}/locations/{locationsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(appengine_v1alpha || (exports.appengine_v1alpha = appengine_v1alpha = {})); + + +/***/ }), + +/***/ 23506: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listRuntimes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}:listRuntimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + repair(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; + class Resource$Apps$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Operations = Resource$Apps$Operations; + class Resource$Apps$Services { + constructor(context) { + this.context = context; + this.versions = new Resource$Apps$Services$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Services = Resource$Apps$Services; + class Resource$Apps$Services$Versions { + constructor(context) { + this.context = context; + this.instances = new Resource$Apps$Services$Versions$Instances(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; + class Resource$Apps$Services$Versions$Instances { + constructor(context) { + this.context = context; + } + debug(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_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 options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/projects/{projectsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/projects/{projectsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId'], + pathParams: ['projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Applications { + constructor(context) { + this.context = context; + this.authorizedDomains = + new Resource$Projects$Locations$Applications$Authorizeddomains(this.context); + } + } + appengine_v1beta.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$Applications$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Projects$Locations$Applications$Authorizeddomains = Resource$Projects$Locations$Applications$Authorizeddomains; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'operationsId'], + pathParams: ['locationsId', 'operationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(appengine_v1beta || (exports.appengine_v1beta = appengine_v1beta = {})); + + +/***/ }), + +/***/ 48603: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.apphub_v1alpha = exports.apphub_v1 = exports.auth = exports.apphub = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(6106); +Object.defineProperty(exports, "apphub_v1", ({ enumerable: true, get: function () { return v1_1.apphub_v1; } })); +const v1alpha_1 = __nccwpck_require__(35034); +Object.defineProperty(exports, "apphub_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.apphub_v1alpha; } })); +exports.VERSIONS = { + v1: v1_1.apphub_v1.Apphub, + v1alpha: v1alpha_1.apphub_v1alpha.Apphub, +}; +function apphub(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('apphub', versionOrOptions, exports.VERSIONS, this); +} +exports.apphub = apphub; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 6106: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.apphub_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var apphub_v1; +(function (apphub_v1) { + /** + * App Hub API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apphub = google.apphub('v1'); + * ``` + */ + class Apphub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apphub_v1.Apphub = Apphub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apphub_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.applications = new Resource$Projects$Locations$Applications(this.context); + this.discoveredServices = + new Resource$Projects$Locations$Discoveredservices(this.context); + this.discoveredWorkloads = + new Resource$Projects$Locations$Discoveredworkloads(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.serviceProjectAttachments = + new Resource$Projects$Locations$Serviceprojectattachments(this.context); + } + detachServiceProjectAttachment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:detachServiceProjectAttachment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + lookupServiceProjectAttachment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:lookupServiceProjectAttachment').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Applications { + constructor(context) { + this.context = context; + this.services = new Resource$Projects$Locations$Applications$Services(this.context); + this.workloads = new Resource$Projects$Locations$Applications$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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$Applications$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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1.Resource$Projects$Locations$Applications$Services = Resource$Projects$Locations$Applications$Services; + class Resource$Projects$Locations$Applications$Workloads { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1.Resource$Projects$Locations$Applications$Workloads = Resource$Projects$Locations$Applications$Workloads; + class Resource$Projects$Locations$Discoveredservices { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/discoveredServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/discoveredServices:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1.Resource$Projects$Locations$Discoveredservices = Resource$Projects$Locations$Discoveredservices; + class Resource$Projects$Locations$Discoveredworkloads { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/discoveredWorkloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/discoveredWorkloads:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1.Resource$Projects$Locations$Discoveredworkloads = Resource$Projects$Locations$Discoveredworkloads; + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Serviceprojectattachments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/serviceProjectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/serviceProjectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1.Resource$Projects$Locations$Serviceprojectattachments = Resource$Projects$Locations$Serviceprojectattachments; +})(apphub_v1 || (exports.apphub_v1 = apphub_v1 = {})); + + +/***/ }), + +/***/ 35034: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.apphub_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__(40524); +var apphub_v1alpha; +(function (apphub_v1alpha) { + /** + * App Hub API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apphub = google.apphub('v1alpha'); + * ``` + */ + class Apphub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apphub_v1alpha.Apphub = Apphub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apphub_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.applications = new Resource$Projects$Locations$Applications(this.context); + this.discoveredServices = + new Resource$Projects$Locations$Discoveredservices(this.context); + this.discoveredWorkloads = + new Resource$Projects$Locations$Discoveredworkloads(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.serviceProjectAttachments = + new Resource$Projects$Locations$Serviceprojectattachments(this.context); + } + detachServiceProjectAttachment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:detachServiceProjectAttachment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + lookupServiceProjectAttachment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:lookupServiceProjectAttachment').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Applications { + constructor(context) { + this.context = context; + this.services = new Resource$Projects$Locations$Applications$Services(this.context); + this.workloads = new Resource$Projects$Locations$Applications$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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1alpha.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$Applications$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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1alpha.Resource$Projects$Locations$Applications$Services = Resource$Projects$Locations$Applications$Services; + class Resource$Projects$Locations$Applications$Workloads { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1alpha.Resource$Projects$Locations$Applications$Workloads = Resource$Projects$Locations$Applications$Workloads; + class Resource$Projects$Locations$Discoveredservices { + constructor(context) { + this.context = context; + } + findUnregistered(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/discoveredServices:findUnregistered').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/discoveredServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/discoveredServices:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1alpha.Resource$Projects$Locations$Discoveredservices = Resource$Projects$Locations$Discoveredservices; + class Resource$Projects$Locations$Discoveredworkloads { + constructor(context) { + this.context = context; + } + findUnregistered(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/{+parent}/discoveredWorkloads:findUnregistered').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/discoveredWorkloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/discoveredWorkloads:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1alpha.Resource$Projects$Locations$Discoveredworkloads = Resource$Projects$Locations$Discoveredworkloads; + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Serviceprojectattachments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/serviceProjectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/serviceProjectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apphub_v1alpha.Resource$Projects$Locations$Serviceprojectattachments = Resource$Projects$Locations$Serviceprojectattachments; +})(apphub_v1alpha || (exports.apphub_v1alpha = apphub_v1alpha = {})); + + +/***/ }), + +/***/ 21791: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(65455); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 65455: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var appsactivity_v1; +(function (appsactivity_v1) { + /** + * Drive Activity API + * + * Provides a historical view of activity. + * + * @example + * const {google} = require('googleapis'); + * const appsactivity = google.appsactivity('v1'); + * + * @namespace appsactivity + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Appsactivity + */ + class Appsactivity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activities = new Resource$Activities(this.context); + } + } + appsactivity_v1.Appsactivity = Appsactivity; + class Resource$Activities { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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); + } + } + } + appsactivity_v1.Resource$Activities = Resource$Activities; +})(appsactivity_v1 || (exports.appsactivity_v1 = appsactivity_v1 = {})); + + +/***/ }), + +/***/ 20374: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1alpha1_1 = __nccwpck_require__(74414); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 74414: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 { + 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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + area120tables_v1alpha1.Resource$Tables = Resource$Tables; + class Resource$Tables$Rows { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/rows').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/rows').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/workspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + area120tables_v1alpha1.Resource$Workspaces = Resource$Workspaces; +})(area120tables_v1alpha1 || (exports.area120tables_v1alpha1 = area120tables_v1alpha1 = {})); + + +/***/ }), + +/***/ 68916: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(48611); +Object.defineProperty(exports, "artifactregistry_v1", ({ enumerable: true, get: function () { return v1_1.artifactregistry_v1; } })); +const v1beta1_1 = __nccwpck_require__(52896); +Object.defineProperty(exports, "artifactregistry_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.artifactregistry_v1beta1; } })); +const v1beta2_1 = __nccwpck_require__(46839); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 48611: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var artifactregistry_v1; +(function (artifactregistry_v1) { + /** + * Artifact Registry API + * + * Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const artifactregistry = google.artifactregistry('v1'); + * ``` + */ + class Artifactregistry { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + artifactregistry_v1.Artifactregistry = Artifactregistry; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + getProjectSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateProjectSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.repositories = new Resource$Projects$Locations$Repositories(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getVpcscConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateVpcscConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Repositories { + constructor(context) { + this.context = context; + this.aptArtifacts = + new Resource$Projects$Locations$Repositories$Aptartifacts(this.context); + this.dockerImages = + new Resource$Projects$Locations$Repositories$Dockerimages(this.context); + this.files = new Resource$Projects$Locations$Repositories$Files(this.context); + this.genericArtifacts = + new Resource$Projects$Locations$Repositories$Genericartifacts(this.context); + this.goModules = new Resource$Projects$Locations$Repositories$Gomodules(this.context); + this.googetArtifacts = + new Resource$Projects$Locations$Repositories$Googetartifacts(this.context); + this.kfpArtifacts = + new Resource$Projects$Locations$Repositories$Kfpartifacts(this.context); + this.mavenArtifacts = + new Resource$Projects$Locations$Repositories$Mavenartifacts(this.context); + this.npmPackages = + new Resource$Projects$Locations$Repositories$Npmpackages(this.context); + this.packages = new Resource$Projects$Locations$Repositories$Packages(this.context); + this.pythonPackages = + new Resource$Projects$Locations$Repositories$Pythonpackages(this.context); + this.yumArtifacts = + new Resource$Projects$Locations$Repositories$Yumartifacts(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; + class Resource$Projects$Locations$Repositories$Aptartifacts { + constructor(context) { + this.context = context; + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/aptArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/aptArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/aptArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Aptartifacts = Resource$Projects$Locations$Repositories$Aptartifacts; + class Resource$Projects$Locations$Repositories$Dockerimages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dockerImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Dockerimages = Resource$Projects$Locations$Repositories$Dockerimages; + class Resource$Projects$Locations$Repositories$Files { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Files = Resource$Projects$Locations$Repositories$Files; + class Resource$Projects$Locations$Repositories$Genericartifacts { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/genericArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/genericArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Genericartifacts = Resource$Projects$Locations$Repositories$Genericartifacts; + class Resource$Projects$Locations$Repositories$Gomodules { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/goModules:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/goModules:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Gomodules = Resource$Projects$Locations$Repositories$Gomodules; + class Resource$Projects$Locations$Repositories$Googetartifacts { + constructor(context) { + this.context = context; + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/googetArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/googetArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/googetArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Googetartifacts = Resource$Projects$Locations$Repositories$Googetartifacts; + class Resource$Projects$Locations$Repositories$Kfpartifacts { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/kfpArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/kfpArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Kfpartifacts = Resource$Projects$Locations$Repositories$Kfpartifacts; + class Resource$Projects$Locations$Repositories$Mavenartifacts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/mavenArtifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Mavenartifacts = Resource$Projects$Locations$Repositories$Mavenartifacts; + class Resource$Projects$Locations$Repositories$Npmpackages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/npmPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Npmpackages = Resource$Projects$Locations$Repositories$Npmpackages; + class Resource$Projects$Locations$Repositories$Packages { + constructor(context) { + this.context = context; + this.tags = new Resource$Projects$Locations$Repositories$Packages$Tags(this.context); + this.versions = + new Resource$Projects$Locations$Repositories$Packages$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Packages = Resource$Projects$Locations$Repositories$Packages; + class Resource$Projects$Locations$Repositories$Packages$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Packages$Tags = Resource$Projects$Locations$Repositories$Packages$Tags; + class Resource$Projects$Locations$Repositories$Packages$Versions { + constructor(context) { + this.context = context; + } + 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Packages$Versions = Resource$Projects$Locations$Repositories$Packages$Versions; + class Resource$Projects$Locations$Repositories$Pythonpackages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pythonPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Pythonpackages = Resource$Projects$Locations$Repositories$Pythonpackages; + class Resource$Projects$Locations$Repositories$Yumartifacts { + constructor(context) { + this.context = context; + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/yumArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/yumArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/yumArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Yumartifacts = Resource$Projects$Locations$Repositories$Yumartifacts; +})(artifactregistry_v1 || (exports.artifactregistry_v1 = artifactregistry_v1 = {})); + + +/***/ }), + +/***/ 52896: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var artifactregistry_v1beta1; +(function (artifactregistry_v1beta1) { + /** + * Artifact Registry API + * + * Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const artifactregistry = google.artifactregistry('v1beta1'); + * ``` + */ + class Artifactregistry { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + artifactregistry_v1beta1.Artifactregistry = Artifactregistry; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + artifactregistry_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.repositories = new Resource$Projects$Locations$Repositories(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta1.Resource$Projects$Locations$Repositories$Packages$Versions = Resource$Projects$Locations$Repositories$Packages$Versions; +})(artifactregistry_v1beta1 || (exports.artifactregistry_v1beta1 = artifactregistry_v1beta1 = {})); + + +/***/ }), + +/***/ 46839: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var artifactregistry_v1beta2; +(function (artifactregistry_v1beta2) { + /** + * Artifact Registry API + * + * Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const artifactregistry = google.artifactregistry('v1beta2'); + * ``` + */ + class Artifactregistry { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + artifactregistry_v1beta2.Artifactregistry = Artifactregistry; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + artifactregistry_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.repositories = new Resource$Projects$Locations$Repositories(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Repositories { + constructor(context) { + this.context = context; + this.aptArtifacts = + new Resource$Projects$Locations$Repositories$Aptartifacts(this.context); + this.files = new Resource$Projects$Locations$Repositories$Files(this.context); + this.packages = new Resource$Projects$Locations$Repositories$Packages(this.context); + this.yumArtifacts = + new Resource$Projects$Locations$Repositories$Yumartifacts(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; + class Resource$Projects$Locations$Repositories$Aptartifacts { + constructor(context) { + this.context = context; + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/aptArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Aptartifacts = Resource$Projects$Locations$Repositories$Aptartifacts; + class Resource$Projects$Locations$Repositories$Files { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Files = Resource$Projects$Locations$Repositories$Files; + class Resource$Projects$Locations$Repositories$Packages { + constructor(context) { + this.context = context; + this.tags = new Resource$Projects$Locations$Repositories$Packages$Tags(this.context); + this.versions = + new Resource$Projects$Locations$Repositories$Packages$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Packages = Resource$Projects$Locations$Repositories$Packages; + class Resource$Projects$Locations$Repositories$Packages$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Packages$Tags = Resource$Projects$Locations$Repositories$Packages$Tags; + class Resource$Projects$Locations$Repositories$Packages$Versions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Packages$Versions = Resource$Projects$Locations$Repositories$Packages$Versions; + class Resource$Projects$Locations$Repositories$Yumartifacts { + constructor(context) { + this.context = context; + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/yumArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Yumartifacts = Resource$Projects$Locations$Repositories$Yumartifacts; +})(artifactregistry_v1beta2 || (exports.artifactregistry_v1beta2 = artifactregistry_v1beta2 = {})); + + +/***/ }), + +/***/ 78437: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(26913); +Object.defineProperty(exports, "assuredworkloads_v1", ({ enumerable: true, get: function () { return v1_1.assuredworkloads_v1; } })); +const v1beta1_1 = __nccwpck_require__(61883); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 26913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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); + } + analyzeWorkloadMove(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['target'], + pathParams: ['target'], + 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableResourceMonitoring(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:enableResourceMonitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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 = assuredworkloads_v1 = {})); + + +/***/ }), + +/***/ 61883: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var assuredworkloads_v1beta1; +(function (assuredworkloads_v1beta1) { + /** + * Assured Workloads API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const assuredworkloads = google.assuredworkloads('v1beta1'); + * ``` + */ + class Assuredworkloads { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + assuredworkloads_v1beta1.Assuredworkloads = Assuredworkloads; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + assuredworkloads_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Locations$Operations(this.context); + this.workloads = new Resource$Organizations$Locations$Workloads(this.context); + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; + class Resource$Organizations$Locations$Workloads { + constructor(context) { + this.context = context; + this.violations = + new Resource$Organizations$Locations$Workloads$Violations(this.context); + } + analyzeWorkloadMove(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['target'], + pathParams: ['target'], + 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableComplianceUpdates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:enableComplianceUpdates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableResourceMonitoring(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:enableResourceMonitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restrictAllowedResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:restrictAllowedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads = Resource$Organizations$Locations$Workloads; + class Resource$Organizations$Locations$Workloads$Violations { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/violations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations; +})(assuredworkloads_v1beta1 || (exports.assuredworkloads_v1beta1 = assuredworkloads_v1beta1 = {})); + + +/***/ }), + +/***/ 31791: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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_v1alpha = exports.authorizedbuyersmarketplace_v1 = exports.auth = exports.authorizedbuyersmarketplace = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(12439); +Object.defineProperty(exports, "authorizedbuyersmarketplace_v1", ({ enumerable: true, get: function () { return v1_1.authorizedbuyersmarketplace_v1; } })); +const v1alpha_1 = __nccwpck_require__(39038); +Object.defineProperty(exports, "authorizedbuyersmarketplace_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.authorizedbuyersmarketplace_v1alpha; } })); +exports.VERSIONS = { + v1: v1_1.authorizedbuyersmarketplace_v1.Authorizedbuyersmarketplace, + v1alpha: v1alpha_1.authorizedbuyersmarketplace_v1alpha.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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 12439: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.auctionPackages = new Resource$Bidders$Auctionpackages(this.context); + this.finalizedDeals = new Resource$Bidders$Finalizeddeals(this.context); + } + } + authorizedbuyersmarketplace_v1.Resource$Bidders = Resource$Bidders; + class Resource$Bidders$Auctionpackages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/auctionPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1.Resource$Bidders$Auctionpackages = Resource$Bidders$Auctionpackages; + 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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/auctionPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:subscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + subscribeClients(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+auctionPackage}:subscribeClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['auctionPackage'], + pathParams: ['auctionPackage'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unsubscribe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:unsubscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unsubscribeClients(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+auctionPackage}:unsubscribeClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['auctionPackage'], + pathParams: ['auctionPackage'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Auctionpackages = Resource$Buyers$Auctionpackages; + class Resource$Buyers$Clients { + constructor(context) { + this.context = context; + this.users = new Resource$Buyers$Clients$Users(this.context); + } + activate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Clients$Users = Resource$Buyers$Clients$Users; + class Resource$Buyers$Finalizeddeals { + constructor(context) { + this.context = context; + } + addCreative(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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', + apiVersion: '', + }, 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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', + apiVersion: '', + }, 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); + } + } + } + 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); + } + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+proposal}:addNote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/proposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendRfp(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+buyer}/proposals:sendRfp').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['buyer'], + pathParams: ['buyer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/{+parent}/deals:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/deals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/publisherProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Publisherprofiles = Resource$Buyers$Publisherprofiles; +})(authorizedbuyersmarketplace_v1 || (exports.authorizedbuyersmarketplace_v1 = authorizedbuyersmarketplace_v1 = {})); + + +/***/ }), + +/***/ 39038: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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__(40524); +var authorizedbuyersmarketplace_v1alpha; +(function (authorizedbuyersmarketplace_v1alpha) { + /** + * 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('v1alpha'); + * ``` + */ + 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_v1alpha.Authorizedbuyersmarketplace = Authorizedbuyersmarketplace; + class Resource$Bidders { + constructor(context) { + this.context = context; + this.auctionPackages = new Resource$Bidders$Auctionpackages(this.context); + this.finalizedDeals = new Resource$Bidders$Finalizeddeals(this.context); + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Bidders = Resource$Bidders; + class Resource$Bidders$Auctionpackages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/auctionPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Bidders$Auctionpackages = Resource$Bidders$Auctionpackages; + 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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.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.dataSegments = new Resource$Buyers$Datasegments(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_v1alpha.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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/auctionPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:subscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + subscribeClients(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+auctionPackage}:subscribeClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['auctionPackage'], + pathParams: ['auctionPackage'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unsubscribe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:unsubscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unsubscribeClients(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+auctionPackage}:unsubscribeClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['auctionPackage'], + pathParams: ['auctionPackage'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Buyers$Clients = Resource$Buyers$Clients; + class Resource$Buyers$Clients$Users { + constructor(context) { + this.context = context; + } + activate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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 + '/v1alpha/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Buyers$Clients$Users = Resource$Buyers$Clients$Users; + class Resource$Buyers$Datasegments { + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/dataSegments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/dataSegments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Buyers$Datasegments = Resource$Buyers$Datasegments; + class Resource$Buyers$Finalizeddeals { + 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 + '/v1alpha/{+deal}:addCreative').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 + '/v1alpha/{+deal}:setReadyToServe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Buyers$Finalizeddeals = Resource$Buyers$Finalizeddeals; + class Resource$Buyers$Proposals { + constructor(context) { + this.context = context; + this.deals = new Resource$Buyers$Proposals$Deals(this.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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+proposal}:addNote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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 + '/v1alpha/{+proposal}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/proposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendRfp(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+buyer}/proposals:sendRfp').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['buyer'], + pathParams: ['buyer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Buyers$Proposals = Resource$Buyers$Proposals; + class Resource$Buyers$Proposals$Deals { + constructor(context) { + this.context = context; + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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 + '/v1alpha/{+parent}/deals:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/deals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Buyers$Proposals$Deals = Resource$Buyers$Proposals$Deals; + class Resource$Buyers$Publisherprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/publisherProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1alpha.Resource$Buyers$Publisherprofiles = Resource$Buyers$Publisherprofiles; +})(authorizedbuyersmarketplace_v1alpha || (exports.authorizedbuyersmarketplace_v1alpha = authorizedbuyersmarketplace_v1alpha = {})); + + +/***/ }), + +/***/ 58384: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.backupdr_v1 = exports.auth = exports.backupdr = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(50224); +Object.defineProperty(exports, "backupdr_v1", ({ enumerable: true, get: function () { return v1_1.backupdr_v1; } })); +exports.VERSIONS = { + v1: v1_1.backupdr_v1.Backupdr, +}; +function backupdr(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('backupdr', versionOrOptions, exports.VERSIONS, this); +} +exports.backupdr = backupdr; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 50224: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.backupdr_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var backupdr_v1; +(function (backupdr_v1) { + /** + * Backup and DR Service API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const backupdr = google.backupdr('v1'); + * ``` + */ + class Backupdr { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + backupdr_v1.Backupdr = Backupdr; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + backupdr_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.backupPlanAssociations = + new Resource$Projects$Locations$Backupplanassociations(this.context); + this.backupPlans = new Resource$Projects$Locations$Backupplans(this.context); + this.backupVaults = new Resource$Projects$Locations$Backupvaults(this.context); + this.managementServers = + new Resource$Projects$Locations$Managementservers(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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + backupdr_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backupplanassociations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupPlanAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupPlanAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + triggerBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:triggerBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + backupdr_v1.Resource$Projects$Locations$Backupplanassociations = Resource$Projects$Locations$Backupplanassociations; + class Resource$Projects$Locations$Backupplans { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupPlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupPlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + backupdr_v1.Resource$Projects$Locations$Backupplans = Resource$Projects$Locations$Backupplans; + class Resource$Projects$Locations$Backupvaults { + constructor(context) { + this.context = context; + this.dataSources = + new Resource$Projects$Locations$Backupvaults$Datasources(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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupVaults').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupVaults:fetchUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupVaults').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + backupdr_v1.Resource$Projects$Locations$Backupvaults = Resource$Projects$Locations$Backupvaults; + class Resource$Projects$Locations$Backupvaults$Datasources { + constructor(context) { + this.context = context; + this.backups = + new Resource$Projects$Locations$Backupvaults$Datasources$Backups(this.context); + } + abandonBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+dataSource}:abandonBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['dataSource'], + pathParams: ['dataSource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchAccessToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:fetchAccessToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + finalizeBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+dataSource}:finalizeBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['dataSource'], + pathParams: ['dataSource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + initiateBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+dataSource}:initiateBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['dataSource'], + pathParams: ['dataSource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInternalStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+dataSource}:setInternalStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['dataSource'], + pathParams: ['dataSource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + backupdr_v1.Resource$Projects$Locations$Backupvaults$Datasources = Resource$Projects$Locations$Backupvaults$Datasources; + class Resource$Projects$Locations$Backupvaults$Datasources$Backups { + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + backupdr_v1.Resource$Projects$Locations$Backupvaults$Datasources$Backups = Resource$Projects$Locations$Backupvaults$Datasources$Backups; + class Resource$Projects$Locations$Managementservers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/managementServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/managementServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + backupdr_v1.Resource$Projects$Locations$Managementservers = Resource$Projects$Locations$Managementservers; + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://backupdr.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + backupdr_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(backupdr_v1 || (exports.backupdr_v1 = backupdr_v1 = {})); + + +/***/ }), + +/***/ 97283: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(3532); +Object.defineProperty(exports, "baremetalsolution_v1", ({ enumerable: true, get: function () { return v1_1.baremetalsolution_v1; } })); +const v1alpha1_1 = __nccwpck_require__(52287); +Object.defineProperty(exports, "baremetalsolution_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.baremetalsolution_v1alpha1; } })); +const v2_1 = __nccwpck_require__(19383); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 3532: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.baremetalsolution_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var baremetalsolution_v1; +(function (baremetalsolution_v1) { + /** + * Bare Metal Solution API + * + * Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const baremetalsolution = google.baremetalsolution('v1'); + * ``` + */ + class Baremetalsolution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + } + } + baremetalsolution_v1.Baremetalsolution = Baremetalsolution; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v1.Resource$Operations = Resource$Operations; +})(baremetalsolution_v1 || (exports.baremetalsolution_v1 = baremetalsolution_v1 = {})); + + +/***/ }), + +/***/ 52287: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var baremetalsolution_v1alpha1; +(function (baremetalsolution_v1alpha1) { + /** + * Bare Metal Solution API + * + * Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const baremetalsolution = google.baremetalsolution('v1alpha1'); + * ``` + */ + class Baremetalsolution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + baremetalsolution_v1alpha1.Baremetalsolution = Baremetalsolution; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.provisioningQuotas = new Resource$Projects$Provisioningquotas(this.context); + } + } + baremetalsolution_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + } + submitProvisioningConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha1/{+project}/{+location}:submitProvisioningConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Provisioningquotas { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/provisioningQuotas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v1alpha1.Resource$Projects$Provisioningquotas = Resource$Projects$Provisioningquotas; +})(baremetalsolution_v1alpha1 || (exports.baremetalsolution_v1alpha1 = baremetalsolution_v1alpha1 = {})); + + +/***/ }), + +/***/ 19383: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var baremetalsolution_v2; +(function (baremetalsolution_v2) { + /** + * Bare Metal Solution API + * + * Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const baremetalsolution = google.baremetalsolution('v2'); + * ``` + */ + class Baremetalsolution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + baremetalsolution_v2.Baremetalsolution = Baremetalsolution; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + baremetalsolution_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instanceProvisioningSettings = + new Resource$Projects$Locations$Instanceprovisioningsettings(this.context); + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.networks = new Resource$Projects$Locations$Networks(this.context); + this.nfsShares = new Resource$Projects$Locations$Nfsshares(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.provisioningConfigs = + new Resource$Projects$Locations$Provisioningconfigs(this.context); + this.provisioningQuotas = + new Resource$Projects$Locations$Provisioningquotas(this.context); + this.sshKeys = new Resource$Projects$Locations$Sshkeys(this.context); + this.volumes = new Resource$Projects$Locations$Volumes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+location}/instanceProvisioningSettings:fetch').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 = {}; + 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}/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); + } + } + detachLun(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+instance}:detachLun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['instance'], + pathParams: ['instance'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disableInteractiveSerialConsole(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:disableInteractiveSerialConsole').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableInteractiveSerialConsole(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:enableInteractiveSerialConsole').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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://baremetalsolution.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); + } + } + 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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNetworkUsage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+location}/networks:listNetworkUsage').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://baremetalsolution.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); + } + } + } + baremetalsolution_v2.Resource$Projects$Locations$Networks = Resource$Projects$Locations$Networks; + class Resource$Projects$Locations$Nfsshares { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/nfsShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/nfsShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Provisioningconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + 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}/provisioningConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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://baremetalsolution.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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/provisioningConfigs:submit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v2.Resource$Projects$Locations$Provisioningconfigs = Resource$Projects$Locations$Provisioningconfigs; + class Resource$Projects$Locations$Provisioningquotas { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + 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}/provisioningQuotas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_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 = {}; + 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}/sshKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/sshKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v2.Resource$Projects$Locations$Sshkeys = Resource$Projects$Locations$Sshkeys; + class Resource$Projects$Locations$Volumes { + constructor(context) { + this.context = context; + this.luns = new Resource$Projects$Locations$Volumes$Luns(this.context); + this.snapshots = new Resource$Projects$Locations$Volumes$Snapshots(this.context); + } + evict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:evict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+volume}:resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['volume'], + pathParams: ['volume'], + 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 = 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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:evict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/luns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 = + {}; + 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}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://baremetalsolution.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://baremetalsolution.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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restoreVolumeSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+volumeSnapshot}:restoreVolumeSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, 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 = baremetalsolution_v2 = {})); + + +/***/ }), + +/***/ 18146: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(95453); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 95453: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var batch_v1; +(function (batch_v1) { + /** + * Batch API + * + * An API to manage the running of Batch resources on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const batch = google.batch('v1'); + * ``` + */ + class Batch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + batch_v1.Batch = Batch; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + batch_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.state = new Resource$Projects$Locations$State(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + this.taskGroups = new Resource$Projects$Locations$Jobs$Taskgroups(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Jobs$Taskgroups { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Jobs$Taskgroups$Tasks(this.context); + } + } + batch_v1.Resource$Projects$Locations$Jobs$Taskgroups = Resource$Projects$Locations$Jobs$Taskgroups; + class Resource$Projects$Locations$Jobs$Taskgroups$Tasks { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations$Jobs$Taskgroups$Tasks = Resource$Projects$Locations$Jobs$Taskgroups$Tasks; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$State { + constructor(context) { + this.context = context; + } + report(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/state:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations$State = Resource$Projects$Locations$State; +})(batch_v1 || (exports.batch_v1 = batch_v1 = {})); + + +/***/ }), + +/***/ 26862: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(30038); +Object.defineProperty(exports, "beyondcorp_v1", ({ enumerable: true, get: function () { return v1_1.beyondcorp_v1; } })); +const v1alpha_1 = __nccwpck_require__(85879); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 30038: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + beyondcorp_v1.Beyondcorp = Beyondcorp; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + beyondcorp_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Organizations$Locations$Global(this.context); + this.operations = new Resource$Organizations$Locations$Operations(this.context); + } + } + beyondcorp_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Global { + constructor(context) { + this.context = context; + this.partnerTenants = + new Resource$Organizations$Locations$Global$Partnertenants(this.context); + } + } + beyondcorp_v1.Resource$Organizations$Locations$Global = Resource$Organizations$Locations$Global; + class Resource$Organizations$Locations$Global$Partnertenants { + constructor(context) { + this.context = context; + this.browserDlpRules = + new Resource$Organizations$Locations$Global$Partnertenants$Browserdlprules(this.context); + this.proxyConfigs = + new Resource$Organizations$Locations$Global$Partnertenants$Proxyconfigs(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Organizations$Locations$Global$Partnertenants = Resource$Organizations$Locations$Global$Partnertenants; + class Resource$Organizations$Locations$Global$Partnertenants$Browserdlprules { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Organizations$Locations$Global$Partnertenants$Browserdlprules = Resource$Organizations$Locations$Global$Partnertenants$Browserdlprules; + class Resource$Organizations$Locations$Global$Partnertenants$Proxyconfigs { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Organizations$Locations$Global$Partnertenants$Proxyconfigs = Resource$Organizations$Locations$Global$Partnertenants$Proxyconfigs; + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + beyondcorp_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.appConnections = new Resource$Projects$Locations$Appconnections(this.context); + this.appConnectors = new Resource$Projects$Locations$Appconnectors(this.context); + this.appGateways = new Resource$Projects$Locations$Appgateways(this.context); + this.clientConnectorServices = + new Resource$Projects$Locations$Clientconnectorservices(this.context); + this.clientGateways = new Resource$Projects$Locations$Clientgateways(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Appconnections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnections:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Appconnections = Resource$Projects$Locations$Appconnections; + class Resource$Projects$Locations$Appconnectors { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+appConnector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appConnector'], + pathParams: ['appConnector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolveInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+appConnector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['appConnector'], + pathParams: ['appConnector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Appconnectors = Resource$Projects$Locations$Appconnectors; + class Resource$Projects$Locations$Appgateways { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + shouldThrottle(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:shouldThrottle').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Appgateways = Resource$Projects$Locations$Appgateways; + class Resource$Projects$Locations$Clientconnectorservices { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Clientconnectorservices = Resource$Projects$Locations$Clientconnectorservices; + class Resource$Projects$Locations$Clientgateways { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Clientgateways = Resource$Projects$Locations$Clientgateways; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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 = beyondcorp_v1 = {})); + + +/***/ }), + +/***/ 85879: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.global = new Resource$Organizations$Locations$Global(this.context); + this.insights = new Resource$Organizations$Locations$Insights(this.context); + this.operations = new Resource$Organizations$Locations$Operations(this.context); + this.subscriptions = new Resource$Organizations$Locations$Subscriptions(this.context); + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Global { + constructor(context) { + this.context = context; + this.partnerTenants = + new Resource$Organizations$Locations$Global$Partnertenants(this.context); + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Global = Resource$Organizations$Locations$Global; + class Resource$Organizations$Locations$Global$Partnertenants { + constructor(context) { + this.context = context; + this.browserDlpRules = + new Resource$Organizations$Locations$Global$Partnertenants$Browserdlprules(this.context); + this.proxyConfigs = + new Resource$Organizations$Locations$Global$Partnertenants$Proxyconfigs(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/partnerTenants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/partnerTenants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Global$Partnertenants = Resource$Organizations$Locations$Global$Partnertenants; + class Resource$Organizations$Locations$Global$Partnertenants$Browserdlprules { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/browserDlpRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/browserDlpRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Global$Partnertenants$Browserdlprules = Resource$Organizations$Locations$Global$Partnertenants$Browserdlprules; + class Resource$Organizations$Locations$Global$Partnertenants$Proxyconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/proxyConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/proxyConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Global$Partnertenants$Proxyconfigs = Resource$Organizations$Locations$Global$Partnertenants$Proxyconfigs; + class Resource$Organizations$Locations$Insights { + constructor(context) { + this.context = context; + } + configuredInsight(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+insight}:configuredInsight').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['insight'], + pathParams: ['insight'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Insights = Resource$Organizations$Locations$Insights; + class Resource$Organizations$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; + class Resource$Organizations$Locations$Subscriptions { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Subscriptions = Resource$Organizations$Locations$Subscriptions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + beyondcorp_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.appConnections = new Resource$Projects$Locations$Appconnections(this.context); + this.appConnectors = new Resource$Projects$Locations$Appconnectors(this.context); + this.appGateways = new Resource$Projects$Locations$Appgateways(this.context); + this.applicationDomains = + new Resource$Projects$Locations$Applicationdomains(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.global = new Resource$Projects$Locations$Global(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); + this.securityGateways = new Resource$Projects$Locations$Securitygateways(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Appconnections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnections:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Appconnections = Resource$Projects$Locations$Appconnections; + class Resource$Projects$Locations$Appconnectors { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+appConnector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['appConnector'], + pathParams: ['appConnector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolveInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+appConnector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Appconnectors = Resource$Projects$Locations$Appconnectors; + class Resource$Projects$Locations$Appgateways { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + shouldThrottle(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:shouldThrottle').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Appgateways = Resource$Projects$Locations$Appgateways; + class Resource$Projects$Locations$Applicationdomains { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Applicationdomains = Resource$Projects$Locations$Applicationdomains; + class Resource$Projects$Locations$Applications { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$Clientconnectorservices { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Clientconnectorservices = Resource$Projects$Locations$Clientconnectorservices; + class Resource$Projects$Locations$Clientgateways { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Clientgateways = Resource$Projects$Locations$Clientgateways; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connections:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connectors { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+connector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['connector'], + pathParams: ['connector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolveInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+connector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['connector'], + pathParams: ['connector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Connectors = Resource$Projects$Locations$Connectors; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.securityGateways = + new Resource$Projects$Locations$Global$Securitygateways(this.context); + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Securitygateways { + constructor(context) { + this.context = context; + this.applications = + new Resource$Projects$Locations$Global$Securitygateways$Applications(this.context); + this.hubs = new Resource$Projects$Locations$Global$Securitygateways$Hubs(this.context); + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Global$Securitygateways = Resource$Projects$Locations$Global$Securitygateways; + class Resource$Projects$Locations$Global$Securitygateways$Applications { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Global$Securitygateways$Applications = Resource$Projects$Locations$Global$Securitygateways$Applications; + class Resource$Projects$Locations$Global$Securitygateways$Hubs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Global$Securitygateways$Hubs = Resource$Projects$Locations$Global$Securitygateways$Hubs; + class Resource$Projects$Locations$Insights { + constructor(context) { + this.context = context; + } + configuredInsight(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+insight}:configuredInsight').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['insight'], + pathParams: ['insight'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Insights = Resource$Projects$Locations$Insights; + class Resource$Projects$Locations$Netconnections { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Netconnections = Resource$Projects$Locations$Netconnections; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Securitygateways { + constructor(context) { + this.context = context; + this.applications = + new Resource$Projects$Locations$Securitygateways$Applications(this.context); + this.hubs = new Resource$Projects$Locations$Securitygateways$Hubs(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/securityGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/securityGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Securitygateways = Resource$Projects$Locations$Securitygateways; + class Resource$Projects$Locations$Securitygateways$Applications { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Securitygateways$Applications = Resource$Projects$Locations$Securitygateways$Applications; + class Resource$Projects$Locations$Securitygateways$Hubs { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/hubs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Securitygateways$Hubs = Resource$Projects$Locations$Securitygateways$Hubs; +})(beyondcorp_v1alpha || (exports.beyondcorp_v1alpha = beyondcorp_v1alpha = {})); + + +/***/ }), + +/***/ 14440: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.biglake_v1 = exports.auth = exports.biglake = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(71927); +Object.defineProperty(exports, "biglake_v1", ({ enumerable: true, get: function () { return v1_1.biglake_v1; } })); +exports.VERSIONS = { + v1: v1_1.biglake_v1.Biglake, +}; +function biglake(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('biglake', versionOrOptions, exports.VERSIONS, this); +} +exports.biglake = biglake; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 71927: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.biglake_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var biglake_v1; +(function (biglake_v1) { + /** + * BigLake API + * + * The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const biglake = google.biglake('v1'); + * ``` + */ + class Biglake { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + biglake_v1.Biglake = Biglake; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + biglake_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.catalogs = new Resource$Projects$Locations$Catalogs(this.context); + } + } + biglake_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Catalogs { + constructor(context) { + this.context = context; + this.databases = new Resource$Projects$Locations$Catalogs$Databases(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://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + biglake_v1.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; + class Resource$Projects$Locations$Catalogs$Databases { + constructor(context) { + this.context = context; + this.tables = new Resource$Projects$Locations$Catalogs$Databases$Tables(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://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + biglake_v1.Resource$Projects$Locations$Catalogs$Databases = Resource$Projects$Locations$Catalogs$Databases; + class Resource$Projects$Locations$Catalogs$Databases$Tables { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rename(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://biglake.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + biglake_v1.Resource$Projects$Locations$Catalogs$Databases$Tables = Resource$Projects$Locations$Catalogs$Databases$Tables; +})(biglake_v1 || (exports.biglake_v1 = biglake_v1 = {})); + + +/***/ }), + +/***/ 52358: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v2_1 = __nccwpck_require__(39349); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 39349: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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; + 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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (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').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, 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); + } + } + } + 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; + 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}/jobs/{+jobId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/jobs/{+jobId}/delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/jobs/{+jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getQueryResults(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/queries/{+jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/bigquery/v2/projects/{+projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{+projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{+projectId}/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + bigquery_v2.Resource$Jobs = Resource$Jobs; + class Resource$Models { + 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}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquery_v2.Resource$Rowaccesspolicies = Resource$Rowaccesspolicies; + class Resource$Tabledata { + constructor(context) { + this.context = context; + } + insertAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/insertAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/data').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + } + bigquery_v2.Resource$Tabledata = Resource$Tabledata; + class Resource$Tables { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, 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); + } + } + } + bigquery_v2.Resource$Tables = Resource$Tables; +})(bigquery_v2 || (exports.bigquery_v2 = bigquery_v2 = {})); + + +/***/ }), + +/***/ 4879: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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.bigqueryconnection_v1 = exports.auth = exports.bigqueryconnection = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(98495); +Object.defineProperty(exports, "bigqueryconnection_v1", ({ enumerable: true, get: function () { return v1_1.bigqueryconnection_v1; } })); +const v1beta1_1 = __nccwpck_require__(97250); +Object.defineProperty(exports, "bigqueryconnection_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.bigqueryconnection_v1beta1; } })); +exports.VERSIONS = { + v1: v1_1.bigqueryconnection_v1.Bigqueryconnection, + 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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 98495: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var bigqueryconnection_v1; +(function (bigqueryconnection_v1) { + /** + * BigQuery Connection API + * + * Allows users to manage BigQuery connections to external data sources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryconnection = google.bigqueryconnection('v1'); + * ``` + */ + class Bigqueryconnection { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryconnection_v1.Bigqueryconnection = Bigqueryconnection; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryconnection_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connections = new Resource$Projects$Locations$Connections(this.context); + } + } + bigqueryconnection_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryconnection_v1.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; +})(bigqueryconnection_v1 || (exports.bigqueryconnection_v1 = bigqueryconnection_v1 = {})); + + +/***/ }), + +/***/ 97250: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var bigqueryconnection_v1beta1; +(function (bigqueryconnection_v1beta1) { + /** + * BigQuery Connection API + * + * Allows users to manage BigQuery connections to external data sources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryconnection = google.bigqueryconnection('v1beta1'); + * ``` + */ + class Bigqueryconnection { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryconnection_v1beta1.Bigqueryconnection = Bigqueryconnection; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryconnection_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connections = new Resource$Projects$Locations$Connections(this.context); + } + } + bigqueryconnection_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCredential(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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 = bigqueryconnection_v1beta1 = {})); + + +/***/ }), + +/***/ 84309: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.bigquerydatapolicy_v1 = exports.auth = exports.bigquerydatapolicy = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(99520); +Object.defineProperty(exports, "bigquerydatapolicy_v1", ({ enumerable: true, get: function () { return v1_1.bigquerydatapolicy_v1; } })); +exports.VERSIONS = { + v1: v1_1.bigquerydatapolicy_v1.Bigquerydatapolicy, +}; +function bigquerydatapolicy(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('bigquerydatapolicy', versionOrOptions, exports.VERSIONS, this); +} +exports.bigquerydatapolicy = bigquerydatapolicy; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 99520: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigquerydatapolicy_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var bigquerydatapolicy_v1; +(function (bigquerydatapolicy_v1) { + /** + * BigQuery Data Policy API + * + * Allows users to manage BigQuery data policies. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigquerydatapolicy = google.bigquerydatapolicy('v1'); + * ``` + */ + class Bigquerydatapolicy { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigquerydatapolicy_v1.Bigquerydatapolicy = Bigquerydatapolicy; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigquerydatapolicy_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.dataPolicies = new Resource$Projects$Locations$Datapolicies(this.context); + } + } + bigquerydatapolicy_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datapolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rename(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigquerydatapolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatapolicy_v1.Resource$Projects$Locations$Datapolicies = Resource$Projects$Locations$Datapolicies; +})(bigquerydatapolicy_v1 || (exports.bigquerydatapolicy_v1 = bigquerydatapolicy_v1 = {})); + + +/***/ }), + +/***/ 86653: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(73515); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 73515: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var bigquerydatatransfer_v1; +(function (bigquerydatatransfer_v1) { + /** + * BigQuery Data Transfer API + * + * Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigquerydatatransfer = google.bigquerydatatransfer('v1'); + * ``` + */ + class Bigquerydatatransfer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigquerydatatransfer_v1.Bigquerydatatransfer = Bigquerydatatransfer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.dataSources = new Resource$Projects$Datasources(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.transferConfigs = new Resource$Projects$Transferconfigs(this.context); + } + enrollDataSources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enrollDataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Datasources { + constructor(context) { + this.context = context; + } + checkValidCreds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Datasources = Resource$Projects$Datasources; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.dataSources = new Resource$Projects$Locations$Datasources(this.context); + this.transferConfigs = new Resource$Projects$Locations$Transferconfigs(this.context); + } + enrollDataSources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enrollDataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unenrollDataSources(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:unenrollDataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasources { + constructor(context) { + this.context = context; + } + checkValidCreds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Datasources = Resource$Projects$Locations$Datasources; + class Resource$Projects$Locations$Transferconfigs { + constructor(context) { + this.context = context; + this.runs = new Resource$Projects$Locations$Transferconfigs$Runs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + scheduleRuns(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs = Resource$Projects$Locations$Transferconfigs; + class Resource$Projects$Locations$Transferconfigs$Runs { + constructor(context) { + this.context = context; + this.transferLogs = + new Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs = Resource$Projects$Locations$Transferconfigs$Runs; + class Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs = Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs; + class Resource$Projects$Transferconfigs { + constructor(context) { + this.context = context; + this.runs = new Resource$Projects$Transferconfigs$Runs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + scheduleRuns(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs = Resource$Projects$Transferconfigs; + class Resource$Projects$Transferconfigs$Runs { + constructor(context) { + this.context = context; + this.transferLogs = + new Resource$Projects$Transferconfigs$Runs$Transferlogs(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs = Resource$Projects$Transferconfigs$Runs; + class Resource$Projects$Transferconfigs$Runs$Transferlogs { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs$Transferlogs = Resource$Projects$Transferconfigs$Runs$Transferlogs; +})(bigquerydatatransfer_v1 || (exports.bigquerydatatransfer_v1 = bigquerydatatransfer_v1 = {})); + + +/***/ }), + +/***/ 76594: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(91307); +Object.defineProperty(exports, "bigqueryreservation_v1", ({ enumerable: true, get: function () { return v1_1.bigqueryreservation_v1; } })); +const v1alpha2_1 = __nccwpck_require__(74332); +Object.defineProperty(exports, "bigqueryreservation_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.bigqueryreservation_v1alpha2; } })); +const v1beta1_1 = __nccwpck_require__(65051); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 91307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var bigqueryreservation_v1; +(function (bigqueryreservation_v1) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1'); + * ``` + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.capacityCommitments = + new Resource$Projects$Locations$Capacitycommitments(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + getBiReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAllAssignments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:searchAllAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAssignments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateBiReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capacitycommitments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + merge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/capacityCommitments:merge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + split(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.assignments = + new Resource$Projects$Locations$Reservations$Assignments(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + failoverReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:failoverReservation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Assignments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; +})(bigqueryreservation_v1 || (exports.bigqueryreservation_v1 = bigqueryreservation_v1 = {})); + + +/***/ }), + +/***/ 74332: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var bigqueryreservation_v1alpha2; +(function (bigqueryreservation_v1alpha2) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1alpha2'); + * ``` + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1alpha2.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1alpha2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.reservationGrants = new Resource$Projects$Locations$Reservationgrants(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + searchReservationGrants(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}:SearchReservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Reservationgrants { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservationgrants = Resource$Projects$Locations$Reservationgrants; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.slotPools = new Resource$Projects$Locations$Reservations$Slotpools(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Slotpools { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/slotPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations$Slotpools = Resource$Projects$Locations$Reservations$Slotpools; +})(bigqueryreservation_v1alpha2 || (exports.bigqueryreservation_v1alpha2 = bigqueryreservation_v1alpha2 = {})); + + +/***/ }), + +/***/ 65051: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var bigqueryreservation_v1beta1; +(function (bigqueryreservation_v1beta1) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1beta1'); + * ``` + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1beta1.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.capacityCommitments = + new Resource$Projects$Locations$Capacitycommitments(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + getBiReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAssignments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateBiReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capacitycommitments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + merge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments:merge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + split(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.assignments = + new Resource$Projects$Locations$Reservations$Assignments(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Assignments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; +})(bigqueryreservation_v1beta1 || (exports.bigqueryreservation_v1beta1 = bigqueryreservation_v1beta1 = {})); + + +/***/ }), + +/***/ 46604: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(12678); +Object.defineProperty(exports, "bigtableadmin_v1", ({ enumerable: true, get: function () { return v1_1.bigtableadmin_v1; } })); +const v2_1 = __nccwpck_require__(27248); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 12678: +/***/ ((__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, + }; + } + } + bigtableadmin_v1.Bigtableadmin = Bigtableadmin; +})(bigtableadmin_v1 || (exports.bigtableadmin_v1 = bigtableadmin_v1 = {})); + + +/***/ }), + +/***/ 27248: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var bigtableadmin_v2; +(function (bigtableadmin_v2) { + /** + * Cloud Bigtable Admin API + * + * Administer your Cloud Bigtable tables and instances. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigtableadmin = google.bigtableadmin('v2'); + * ``` + */ + class Bigtableadmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + bigtableadmin_v2.Bigtableadmin = Bigtableadmin; + class Resource$Operations { + constructor(context) { + this.context = context; + this.projects = new Resource$Operations$Projects(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigtableadmin_v2.Resource$Operations$Projects$Operations = Resource$Operations$Projects$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigtableadmin_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + this.appProfiles = new Resource$Projects$Instances$Appprofiles(this.context); + this.clusters = new Resource$Projects$Instances$Clusters(this.context); + this.tables = new Resource$Projects$Instances$Tables(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Appprofiles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances$Clusters = Resource$Projects$Instances$Clusters; + class Resource$Projects$Instances$Clusters$Backups { + constructor(context) { + this.context = context; + } + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances$Clusters$Backups = Resource$Projects$Instances$Clusters$Backups; + class Resource$Projects$Instances$Clusters$Hottablets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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; + this.authorizedViews = + new Resource$Projects$Instances$Tables$Authorizedviews(this.context); + } + 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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tables:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances$Tables = Resource$Projects$Instances$Tables; + class Resource$Projects$Instances$Tables$Authorizedviews { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/authorizedViews').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/authorizedViews').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances$Tables$Authorizedviews = Resource$Projects$Instances$Tables$Authorizedviews; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Locations = Resource$Projects$Locations; +})(bigtableadmin_v2 || (exports.bigtableadmin_v2 = bigtableadmin_v2 = {})); + + +/***/ }), + +/***/ 81089: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(39284); +Object.defineProperty(exports, "billingbudgets_v1", ({ enumerable: true, get: function () { return v1_1.billingbudgets_v1; } })); +const v1beta1_1 = __nccwpck_require__(32169); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 39284: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var billingbudgets_v1; +(function (billingbudgets_v1) { + /** + * Cloud Billing Budget API + * + * The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const billingbudgets = google.billingbudgets('v1'); + * ``` + */ + class Billingbudgets { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + } + } + billingbudgets_v1.Billingbudgets = Billingbudgets; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.budgets = new Resource$Billingaccounts$Budgets(this.context); + } + } + billingbudgets_v1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Budgets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + billingbudgets_v1.Resource$Billingaccounts$Budgets = Resource$Billingaccounts$Budgets; +})(billingbudgets_v1 || (exports.billingbudgets_v1 = billingbudgets_v1 = {})); + + +/***/ }), + +/***/ 32169: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var billingbudgets_v1beta1; +(function (billingbudgets_v1beta1) { + /** + * Cloud Billing Budget API + * + * The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const billingbudgets = google.billingbudgets('v1beta1'); + * ``` + */ + class Billingbudgets { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + } + } + billingbudgets_v1beta1.Billingbudgets = Billingbudgets; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.budgets = new Resource$Billingaccounts$Budgets(this.context); + } + } + billingbudgets_v1beta1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Budgets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + billingbudgets_v1beta1.Resource$Billingaccounts$Budgets = Resource$Billingaccounts$Budgets; +})(billingbudgets_v1beta1 || (exports.billingbudgets_v1beta1 = billingbudgets_v1beta1 = {})); + + +/***/ }), + +/***/ 37245: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(15425); +Object.defineProperty(exports, "binaryauthorization_v1", ({ enumerable: true, get: function () { return v1_1.binaryauthorization_v1; } })); +const v1beta1_1 = __nccwpck_require__(99826); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 15425: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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); + } + } + binaryauthorization_v1.Binaryauthorization = Binaryauthorization; + class Resource$Projects { + constructor(context) { + this.context = context; + this.attestors = new Resource$Projects$Attestors(this.context); + this.platforms = new Resource$Projects$Platforms(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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validateAttestationOccurrence(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+attestor}:validateAttestationOccurrence').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['attestor'], + pathParams: ['attestor'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1.Resource$Projects$Attestors = Resource$Projects$Attestors; + class Resource$Projects$Platforms { + constructor(context) { + this.context = context; + this.gke = new Resource$Projects$Platforms$Gke(this.context); + this.policies = new Resource$Projects$Platforms$Policies(this.context); + } + } + binaryauthorization_v1.Resource$Projects$Platforms = Resource$Projects$Platforms; + class Resource$Projects$Platforms$Gke { + constructor(context) { + this.context = context; + this.policies = new Resource$Projects$Platforms$Gke$Policies(this.context); + } + } + binaryauthorization_v1.Resource$Projects$Platforms$Gke = Resource$Projects$Platforms$Gke; + class Resource$Projects$Platforms$Gke$Policies { + constructor(context) { + this.context = context; + } + evaluate(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:evaluate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1.Resource$Projects$Platforms$Gke$Policies = Resource$Projects$Platforms$Gke$Policies; + class Resource$Projects$Platforms$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replacePlatformPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1.Resource$Projects$Platforms$Policies = Resource$Projects$Platforms$Policies; + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1.Resource$Projects$Policy = Resource$Projects$Policy; + class Resource$Systempolicy { + constructor(context) { + this.context = context; + } + getPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1.Resource$Systempolicy = Resource$Systempolicy; +})(binaryauthorization_v1 || (exports.binaryauthorization_v1 = binaryauthorization_v1 = {})); + + +/***/ }), + +/***/ 99826: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var binaryauthorization_v1beta1; +(function (binaryauthorization_v1beta1) { + /** + * Binary Authorization API + * + * The management interface for Binary Authorization, a service that provides policy-based deployment validation and control for images deployed to Google Kubernetes Engine (GKE), Anthos Service Mesh, Anthos Clusters, and Cloud Run. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const binaryauthorization = google.binaryauthorization('v1beta1'); + * ``` + */ + class Binaryauthorization { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.systempolicy = new Resource$Systempolicy(this.context); + } + } + binaryauthorization_v1beta1.Binaryauthorization = Binaryauthorization; + class Resource$Projects { + constructor(context) { + this.context = context; + this.attestors = new Resource$Projects$Attestors(this.context); + this.policy = new Resource$Projects$Policy(this.context); + } + getPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1beta1.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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validateAttestationOccurrence(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+attestor}:validateAttestationOccurrence').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['attestor'], + pathParams: ['attestor'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1beta1.Resource$Projects$Attestors = Resource$Projects$Attestors; + class Resource$Projects$Policy { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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', + apiVersion: '', + }, options), + params, + 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 + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1beta1.Resource$Systempolicy = Resource$Systempolicy; +})(binaryauthorization_v1beta1 || (exports.binaryauthorization_v1beta1 = binaryauthorization_v1beta1 = {})); + + +/***/ }), + +/***/ 80304: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.blockchainnodeengine_v1 = exports.auth = exports.blockchainnodeengine = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(71993); +Object.defineProperty(exports, "blockchainnodeengine_v1", ({ enumerable: true, get: function () { return v1_1.blockchainnodeengine_v1; } })); +exports.VERSIONS = { + v1: v1_1.blockchainnodeengine_v1.Blockchainnodeengine, +}; +function blockchainnodeengine(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('blockchainnodeengine', versionOrOptions, exports.VERSIONS, this); +} +exports.blockchainnodeengine = blockchainnodeengine; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 71993: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.blockchainnodeengine_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var blockchainnodeengine_v1; +(function (blockchainnodeengine_v1) { + /** + * Blockchain Node Engine API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const blockchainnodeengine = google.blockchainnodeengine('v1'); + * ``` + */ + class Blockchainnodeengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + blockchainnodeengine_v1.Blockchainnodeengine = Blockchainnodeengine; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + blockchainnodeengine_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.blockchainNodes = new Resource$Projects$Locations$Blockchainnodes(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://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blockchainnodeengine_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Blockchainnodes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/blockchainNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/blockchainNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blockchainnodeengine_v1.Resource$Projects$Locations$Blockchainnodes = Resource$Projects$Locations$Blockchainnodes; + 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://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blockchainnodeengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blockchainnodeengine_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(blockchainnodeengine_v1 || (exports.blockchainnodeengine_v1 = blockchainnodeengine_v1 = {})); + + +/***/ }), + +/***/ 43430: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v2_1 = __nccwpck_require__(79743); +Object.defineProperty(exports, "blogger_v2", ({ enumerable: true, get: function () { return v2_1.blogger_v2; } })); +const v3_1 = __nccwpck_require__(38264); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 79743: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var blogger_v2; +(function (blogger_v2) { + /** + * Blogger API + * + * The Blogger API provides access to posts, comments and pages of a Blogger blog. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const blogger = google.blogger('v2'); + * ``` + */ + class Blogger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.blogs = new Resource$Blogs(this.context); + this.comments = new Resource$Comments(this.context); + this.pages = new Resource$Pages(this.context); + this.posts = new Resource$Posts(this.context); + this.users = new Resource$Users(this.context); + } + } + blogger_v2.Blogger = Blogger; + class Resource$Blogs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Blogs = Resource$Blogs; + class Resource$Comments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Comments = Resource$Comments; + class Resource$Pages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Pages = Resource$Pages; + class Resource$Posts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Posts = Resource$Posts; + class Resource$Users { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Users = Resource$Users; +})(blogger_v2 || (exports.blogger_v2 = blogger_v2 = {})); + + +/***/ }), + +/***/ 38264: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var blogger_v3; +(function (blogger_v3) { + /** + * Blogger API + * + * The Blogger API provides access to posts, comments and pages of a Blogger blog. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const blogger = google.blogger('v3'); + * ``` + */ + class Blogger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.blogs = new Resource$Blogs(this.context); + this.blogUserInfos = new Resource$Bloguserinfos(this.context); + this.comments = new Resource$Comments(this.context); + this.pages = new Resource$Pages(this.context); + this.pageViews = new Resource$Pageviews(this.context); + this.posts = new Resource$Posts(this.context); + this.postUserInfos = new Resource$Postuserinfos(this.context); + this.users = new Resource$Users(this.context); + } + } + blogger_v3.Blogger = Blogger; + class Resource$Blogs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getByUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/byurl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['url'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listByUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Blogs = Resource$Blogs; + class Resource$Bloguserinfos { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['userId', 'blogId'], + pathParams: ['blogId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Bloguserinfos = Resource$Bloguserinfos; + class Resource$Comments { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listByBlog(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAsSpam(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/spam').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Comments = Resource$Comments; + class Resource$Pages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Pages = Resource$Pages; + class Resource$Pageviews { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pageviews').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Pageviews = Resource$Pageviews; + class Resource$Posts { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getByPath(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/bypath').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'path'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'q'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Posts = Resource$Posts; + class Resource$Postuserinfos { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['userId', 'blogId'], + pathParams: ['blogId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Postuserinfos = Resource$Postuserinfos; + class Resource$Users { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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 = blogger_v3 = {})); + + +/***/ }), + +/***/ 27911: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(14836); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 14836: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var books_v1; +(function (books_v1) { + /** + * Books API + * + * The Google Books API allows clients to access the Google Books repository. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const books = google.books('v1'); + * ``` + */ + class Books { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bookshelves = new Resource$Bookshelves(this.context); + this.cloudloading = new Resource$Cloudloading(this.context); + this.dictionary = new Resource$Dictionary(this.context); + this.familysharing = new Resource$Familysharing(this.context); + this.layers = new Resource$Layers(this.context); + this.myconfig = new Resource$Myconfig(this.context); + this.mylibrary = new Resource$Mylibrary(this.context); + this.notification = new Resource$Notification(this.context); + this.onboarding = new Resource$Onboarding(this.context); + this.personalizedstream = new Resource$Personalizedstream(this.context); + this.promooffer = new Resource$Promooffer(this.context); + this.series = new Resource$Series(this.context); + this.volumes = new Resource$Volumes(this.context); + } + } + books_v1.Books = Books; + class Resource$Bookshelves { + constructor(context) { + this.context = context; + this.volumes = new Resource$Bookshelves$Volumes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['userId', 'shelf'], + pathParams: ['shelf', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Bookshelves = Resource$Bookshelves; + class Resource$Bookshelves$Volumes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['userId', 'shelf'], + pathParams: ['shelf', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Bookshelves$Volumes = Resource$Bookshelves$Volumes; + class Resource$Cloudloading { + constructor(context) { + this.context = context; + } + addBook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/cloudloading/addBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteBook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/cloudloading/deleteBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Cloudloading = Resource$Cloudloading; + class Resource$Dictionary { + constructor(context) { + this.context = context; + } + listOfflineMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/dictionary/listOfflineMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['cpksver'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Dictionary = Resource$Dictionary; + class Resource$Familysharing { + constructor(context) { + this.context = context; + } + getFamilyInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/getFamilyInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + share(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/share').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unshare(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/unshare').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Familysharing = Resource$Familysharing; + class Resource$Layers { + constructor(context) { + this.context = context; + this.annotationData = new Resource$Layers$Annotationdata(this.context); + this.volumeAnnotations = new Resource$Layers$Volumeannotations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary/{summaryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId', 'summaryId'], + pathParams: ['summaryId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Layers = Resource$Layers; + class Resource$Layers$Annotationdata { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'volumeId', + 'layerId', + 'annotationDataId', + 'contentVersion', + ], + pathParams: ['annotationDataId', 'layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}/data').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'contentVersion'], + pathParams: ['layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Layers$Annotationdata = Resource$Layers$Annotationdata; + class Resource$Layers$Volumeannotations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'annotationId'], + pathParams: ['annotationId', 'layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'contentVersion'], + pathParams: ['layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Layers$Volumeannotations = Resource$Layers$Volumeannotations; + class Resource$Myconfig { + constructor(context) { + this.context = context; + } + getUserSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/getUserSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + releaseDownloadAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/releaseDownloadAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['cpksver', 'volumeIds'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + requestAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/requestAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['cpksver', 'nonce', 'source', 'volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + syncVolumeLicenses(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/syncVolumeLicenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['cpksver', 'nonce', 'source'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateUserSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/updateUserSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Myconfig = Resource$Myconfig; + class Resource$Mylibrary { + constructor(context) { + this.context = context; + this.annotations = new Resource$Mylibrary$Annotations(this.context); + this.bookshelves = new Resource$Mylibrary$Bookshelves(this.context); + this.readingpositions = new Resource$Mylibrary$Readingpositions(this.context); + } + } + books_v1.Resource$Mylibrary = Resource$Mylibrary; + class Resource$Mylibrary$Annotations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['annotationId'], + pathParams: ['annotationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + summary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/summary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['layerIds', 'volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['annotationId'], + pathParams: ['annotationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Mylibrary$Annotations = Resource$Mylibrary$Annotations; + class Resource$Mylibrary$Bookshelves { + constructor(context) { + this.context = context; + this.volumes = new Resource$Mylibrary$Bookshelves$Volumes(this.context); + } + addVolume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/addVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['shelf', 'volumeId'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + clearVolumes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/clearVolumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveVolume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/moveVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['shelf', 'volumeId', 'volumePosition'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeVolume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/removeVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['shelf', 'volumeId'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Mylibrary$Bookshelves = Resource$Mylibrary$Bookshelves; + class Resource$Mylibrary$Bookshelves$Volumes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Mylibrary$Bookshelves$Volumes = Resource$Mylibrary$Bookshelves$Volumes; + class Resource$Mylibrary$Readingpositions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/readingpositions/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setPosition(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/mylibrary/readingpositions/{volumeId}/setPosition').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId', 'position', 'timestamp'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Mylibrary$Readingpositions = Resource$Mylibrary$Readingpositions; + class Resource$Notification { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/notification/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['notification_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Notification = Resource$Notification; + class Resource$Onboarding { + constructor(context) { + this.context = context; + } + listCategories(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/onboarding/listCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listCategoryVolumes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/onboarding/listCategoryVolumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Onboarding = Resource$Onboarding; + class Resource$Personalizedstream { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/personalizedstream/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Personalizedstream = Resource$Personalizedstream; + class Resource$Promooffer { + constructor(context) { + this.context = context; + } + accept(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Promooffer = Resource$Promooffer; + class Resource$Series { + constructor(context) { + this.context = context; + this.membership = new Resource$Series$Membership(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/series/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['series_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Series = Resource$Series; + class Resource$Series$Membership { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/series/membership/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['series_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Series$Membership = Resource$Series$Membership; + class Resource$Volumes { + constructor(context) { + this.context = context; + this.associated = new Resource$Volumes$Associated(this.context); + this.mybooks = new Resource$Volumes$Mybooks(this.context); + this.recommended = new Resource$Volumes$Recommended(this.context); + this.useruploaded = new Resource$Volumes$Useruploaded(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['q'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Volumes = Resource$Volumes; + class Resource$Volumes$Associated { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/associated').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Volumes$Associated = Resource$Volumes$Associated; + class Resource$Volumes$Mybooks { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/mybooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Volumes$Mybooks = Resource$Volumes$Mybooks; + class Resource$Volumes$Recommended { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/recommended').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = books_v1 = {})); + + +/***/ }), + +/***/ 64611: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(20195); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 20195: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var businessprofileperformance_v1; +(function (businessprofileperformance_v1) { + /** + * Business Profile Performance API + * + * The Business Profile Performance API allows merchants to fetch performance reports about their business profile on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const businessprofileperformance = google.businessprofileperformance('v1'); + * ``` + */ + class Businessprofileperformance { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.locations = new Resource$Locations(this.context); + } + } + businessprofileperformance_v1.Businessprofileperformance = Businessprofileperformance; + class Resource$Locations { + constructor(context) { + this.context = context; + this.searchkeywords = new Resource$Locations$Searchkeywords(this.context); + } + fetchMultiDailyMetricsTimeSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://businessprofileperformance.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}:fetchMultiDailyMetricsTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDailyMetricsTimeSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://businessprofileperformance.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getDailyMetricsTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + businessprofileperformance_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Searchkeywords { + constructor(context) { + this.context = context; + this.impressions = new Resource$Locations$Searchkeywords$Impressions(this.context); + } + } + businessprofileperformance_v1.Resource$Locations$Searchkeywords = Resource$Locations$Searchkeywords; + class Resource$Locations$Searchkeywords$Impressions { + constructor(context) { + this.context = context; + this.monthly = new Resource$Locations$Searchkeywords$Impressions$Monthly(this.context); + } + } + businessprofileperformance_v1.Resource$Locations$Searchkeywords$Impressions = Resource$Locations$Searchkeywords$Impressions; + class Resource$Locations$Searchkeywords$Impressions$Monthly { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://businessprofileperformance.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/searchkeywords/impressions/monthly').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + businessprofileperformance_v1.Resource$Locations$Searchkeywords$Impressions$Monthly = Resource$Locations$Searchkeywords$Impressions$Monthly; +})(businessprofileperformance_v1 || (exports.businessprofileperformance_v1 = businessprofileperformance_v1 = {})); + + +/***/ }), + +/***/ 2285: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v3_1 = __nccwpck_require__(19829); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 19829: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +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 || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, 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$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', + apiVersion: '', + }, 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; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/colors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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$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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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$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', + apiVersion: '', + }, 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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 + '/calendar/v3/users/me/settings/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Settings = Resource$Settings; +})(calendar_v3 || (exports.calendar_v3 = calendar_v3 = {})); + + +/***/ }), + +/***/ 67577: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(36690); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 36690: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var certificatemanager_v1; +(function (certificatemanager_v1) { + /** + * Certificate Manager API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const certificatemanager = google.certificatemanager('v1'); + * ``` + */ + class Certificatemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + certificatemanager_v1.Certificatemanager = Certificatemanager; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + certificatemanager_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.certificateIssuanceConfigs = + new Resource$Projects$Locations$Certificateissuanceconfigs(this.context); + this.certificateMaps = new Resource$Projects$Locations$Certificatemaps(this.context); + this.certificates = new Resource$Projects$Locations$Certificates(this.context); + this.dnsAuthorizations = + new Resource$Projects$Locations$Dnsauthorizations(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.trustConfigs = new Resource$Projects$Locations$Trustconfigs(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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Certificateissuanceconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateIssuanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateIssuanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Certificatemaps = Resource$Projects$Locations$Certificatemaps; + class Resource$Projects$Locations$Certificatemaps$Certificatemapentries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateMapEntries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateMapEntries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Certificatemaps$Certificatemapentries = Resource$Projects$Locations$Certificatemaps$Certificatemapentries; + class Resource$Projects$Locations$Certificates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Certificates = Resource$Projects$Locations$Certificates; + class Resource$Projects$Locations$Dnsauthorizations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dnsAuthorizations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dnsAuthorizations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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; + class Resource$Projects$Locations$Trustconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/trustConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/trustConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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$Trustconfigs = Resource$Projects$Locations$Trustconfigs; +})(certificatemanager_v1 || (exports.certificatemanager_v1 = certificatemanager_v1 = {})); + + +/***/ }), + +/***/ 32290: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(57677); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57677: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var chat_v1; +(function (chat_v1) { + /** + * Google Chat API + * + * The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. + * + * @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); + this.users = new Resource$Users(this.context); + } + } + chat_v1.Chat = Chat; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/attachments:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/attachments:upload').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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); + this.spaceEvents = new Resource$Spaces$Spaceevents(this.context); + } + completeImport(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:completeImport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/spaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + findDirectMessage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/spaces:findDirectMessage').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/spaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/spaces:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/spaces:setup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces = Resource$Spaces; + class Resource$Spaces$Members { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces$Members = Resource$Spaces$Members; + class Resource$Spaces$Messages { + constructor(context) { + this.context = context; + this.attachments = new Resource$Spaces$Messages$Attachments(this.context); + this.reactions = new Resource$Spaces$Messages$Reactions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces$Messages = Resource$Spaces$Messages; + class Resource$Spaces$Messages$Attachments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces$Messages$Attachments = Resource$Spaces$Messages$Attachments; + class Resource$Spaces$Messages$Reactions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/reactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/reactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces$Messages$Reactions = Resource$Spaces$Messages$Reactions; + class Resource$Spaces$Spaceevents { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/spaceEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces$Spaceevents = Resource$Spaces$Spaceevents; + class Resource$Users { + constructor(context) { + this.context = context; + this.spaces = new Resource$Users$Spaces(this.context); + } + } + chat_v1.Resource$Users = Resource$Users; + class Resource$Users$Spaces { + constructor(context) { + this.context = context; + this.threads = new Resource$Users$Spaces$Threads(this.context); + } + getSpaceReadState(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSpaceReadState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Users$Spaces = Resource$Users$Spaces; + class Resource$Users$Spaces$Threads { + constructor(context) { + this.context = context; + } + getThreadReadState(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Users$Spaces$Threads = Resource$Users$Spaces$Threads; +})(chat_v1 || (exports.chat_v1 = chat_v1 = {})); + + +/***/ }), + +/***/ 18247: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.checks_v1alpha = exports.auth = exports.checks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1alpha_1 = __nccwpck_require__(61606); +Object.defineProperty(exports, "checks_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.checks_v1alpha; } })); +exports.VERSIONS = { + v1alpha: v1alpha_1.checks_v1alpha.Checks, +}; +function checks(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('checks', versionOrOptions, exports.VERSIONS, this); +} +exports.checks = checks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 61606: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.checks_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__(40524); +var checks_v1alpha; +(function (checks_v1alpha) { + /** + * Checks API + * + * The Checks API contains powerful and easy-to-use privacy and compliance APIs that interact with the Checks product and its underlying technology. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const checks = google.checks('v1alpha'); + * ``` + */ + class Checks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.media = new Resource$Media(this.context); + } + } + checks_v1alpha.Checks = Checks; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.apps = new Resource$Accounts$Apps(this.context); + } + } + checks_v1alpha.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Apps { + constructor(context) { + this.context = context; + this.operations = new Resource$Accounts$Apps$Operations(this.context); + this.reports = new Resource$Accounts$Apps$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://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + checks_v1alpha.Resource$Accounts$Apps = Resource$Accounts$Apps; + class Resource$Accounts$Apps$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://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + checks_v1alpha.Resource$Accounts$Apps$Operations = Resource$Accounts$Apps$Operations; + class Resource$Accounts$Apps$Reports { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + checks_v1alpha.Resource$Accounts$Apps$Reports = Resource$Accounts$Apps$Reports; + 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://checks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/reports:analyzeUpload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1alpha/{+parent}/reports:analyzeUpload').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + checks_v1alpha.Resource$Media = Resource$Media; +})(checks_v1alpha || (exports.checks_v1alpha = checks_v1alpha = {})); + + +/***/ }), + +/***/ 3872: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(59918); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 59918: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var chromemanagement_v1; +(function (chromemanagement_v1) { + /** + * Chrome Management API + * + * The Chrome Management API is a suite of services that allows Chrome administrators to view, manage and gain insights on their Chrome OS and Chrome Browser devices. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const chromemanagement = google.chromemanagement('v1'); + * ``` + */ + class Chromemanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + } + } + chromemanagement_v1.Chromemanagement = Chromemanagement; + class Resource$Customers { + constructor(context) { + this.context = context; + this.apps = new Resource$Customers$Apps(this.context); + this.reports = new Resource$Customers$Reports(this.context); + this.telemetry = new Resource$Customers$Telemetry(this.context); + } + } + chromemanagement_v1.Resource$Customers = Resource$Customers; + class Resource$Customers$Apps { + constructor(context) { + this.context = context; + this.android = new Resource$Customers$Apps$Android(this.context); + this.chrome = new Resource$Customers$Apps$Chrome(this.context); + this.web = new Resource$Customers$Apps$Web(this.context); + } + countChromeAppRequests(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/apps:countChromeAppRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + fetchDevicesRequestingExtension(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/apps:fetchDevicesRequestingExtension').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + fetchUsersRequestingExtension(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/apps:fetchUsersRequestingExtension').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Apps = Resource$Customers$Apps; + class Resource$Customers$Apps$Android { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Apps$Android = Resource$Customers$Apps$Android; + class Resource$Customers$Apps$Chrome { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Apps$Chrome = Resource$Customers$Apps$Chrome; + class Resource$Customers$Apps$Web { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Apps$Web = Resource$Customers$Apps$Web; + class Resource$Customers$Reports { + constructor(context) { + this.context = context; + } + countChromeBrowsersNeedingAttention(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+customer}/reports:countChromeBrowsersNeedingAttention').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + countChromeCrashEvents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countChromeCrashEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countChromeDevicesReachingAutoExpirationDate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countChromeDevicesThatNeedAttention(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+customer}/reports:countChromeDevicesThatNeedAttention').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countChromeHardwareFleetDevices(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+customer}/reports:countChromeHardwareFleetDevices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countChromeVersions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countChromeVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countInstalledApps(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countInstalledApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countPrintJobsByPrinter(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByPrinter').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countPrintJobsByUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + enumeratePrintJobs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:enumeratePrintJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + findInstalledAppDevices(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:findInstalledAppDevices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Reports = Resource$Customers$Reports; + class Resource$Customers$Telemetry { + constructor(context) { + this.context = context; + this.devices = new Resource$Customers$Telemetry$Devices(this.context); + this.events = new Resource$Customers$Telemetry$Events(this.context); + this.notificationConfigs = + new Resource$Customers$Telemetry$Notificationconfigs(this.context); + this.users = new Resource$Customers$Telemetry$Users(this.context); + } + } + chromemanagement_v1.Resource$Customers$Telemetry = Resource$Customers$Telemetry; + class Resource$Customers$Telemetry$Devices { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/telemetry/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Telemetry$Devices = Resource$Customers$Telemetry$Devices; + class Resource$Customers$Telemetry$Events { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/telemetry/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Telemetry$Events = Resource$Customers$Telemetry$Events; + class Resource$Customers$Telemetry$Notificationconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/telemetry/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/telemetry/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Telemetry$Notificationconfigs = Resource$Customers$Telemetry$Notificationconfigs; + class Resource$Customers$Telemetry$Users { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/telemetry/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Telemetry$Users = Resource$Customers$Telemetry$Users; +})(chromemanagement_v1 || (exports.chromemanagement_v1 = chromemanagement_v1 = {})); + + +/***/ }), + +/***/ 50725: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(60962); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 60962: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = {}; + options = {}; + } + 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:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + 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 = {}; + options = {}; + } + 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/groups:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + batchModify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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/groups:batchModify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + listGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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/groups:listGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + updateGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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/groups:updateGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + chromepolicy_v1.Resource$Customers$Policies$Groups = Resource$Customers$Policies$Groups; + class Resource$Customers$Policies$Networks { + constructor(context) { + this.context = context; + } + defineCertificate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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/networks:defineCertificate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + defineNetwork(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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/networks:defineNetwork').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + removeCertificate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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/networks:removeCertificate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + removeNetwork(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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/networks:removeNetwork').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + chromepolicy_v1.Resource$Customers$Policies$Networks = Resource$Customers$Policies$Networks; + class Resource$Customers$Policies$Orgunits { + constructor(context) { + this.context = context; + } + batchInherit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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/orgunits:batchInherit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + batchModify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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/orgunits:batchModify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + chromepolicy_v1.Resource$Customers$Policies$Orgunits = Resource$Customers$Policies$Orgunits; + class Resource$Customers$Policyschemas { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/policySchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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', + apiVersion: '', + }, 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 (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromepolicy_v1.Resource$Media = Resource$Media; +})(chromepolicy_v1 || (exports.chromepolicy_v1 = chromepolicy_v1 = {})); + + +/***/ }), + +/***/ 86553: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(2880); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 2880: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var chromeuxreport_v1; +(function (chromeuxreport_v1) { + /** + * Chrome UX Report API + * + * The Chrome UX Report API lets you view real user experience data for millions of websites. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const chromeuxreport = google.chromeuxreport('v1'); + * ``` + */ + class Chromeuxreport { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.records = new Resource$Records(this.context); + } + } + chromeuxreport_v1.Chromeuxreport = Chromeuxreport; + class Resource$Records { + constructor(context) { + this.context = context; + } + queryHistoryRecord(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromeuxreport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/records:queryHistoryRecord').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryRecord(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromeuxreport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/records:queryRecord').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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 = chromeuxreport_v1 = {})); + + +/***/ }), + +/***/ 14729: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v2_1 = __nccwpck_require__(57955); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57955: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var civicinfo_v2; +(function (civicinfo_v2) { + /** + * Google Civic Information API + * + * Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const civicinfo = google.civicinfo('v2'); + * ``` + */ + class Civicinfo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.divisions = new Resource$Divisions(this.context); + this.elections = new Resource$Elections(this.context); + this.representatives = new Resource$Representatives(this.context); + } + } + civicinfo_v2.Civicinfo = Civicinfo; + class Resource$Divisions { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + 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; + } + electionQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/elections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + voterInfoQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/voterinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + 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; + } + representativeInfoByAddress(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/civicinfo/v2/representatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + representativeInfoByDivision(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/civicinfo/v2/representatives/{ocdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['ocdId'], + pathParams: ['ocdId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + civicinfo_v2.Resource$Representatives = Resource$Representatives; +})(civicinfo_v2 || (exports.civicinfo_v2 = civicinfo_v2 = {})); + + +/***/ }), + +/***/ 75054: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(52619); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 52619: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var classroom_v1; +(function (classroom_v1) { + /** + * Google Classroom API + * + * Manages classes, rosters, and invitations in Google Classroom. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const classroom = google.classroom('v1'); + * ``` + */ + class Classroom { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.courses = new Resource$Courses(this.context); + this.invitations = new Resource$Invitations(this.context); + this.registrations = new Resource$Registrations(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + } + } + classroom_v1.Classroom = Classroom; + class Resource$Courses { + constructor(context) { + this.context = context; + this.aliases = new Resource$Courses$Aliases(this.context); + this.announcements = new Resource$Courses$Announcements(this.context); + this.courseWork = new Resource$Courses$Coursework(this.context); + this.courseWorkMaterials = new Resource$Courses$Courseworkmaterials(this.context); + this.posts = new Resource$Courses$Posts(this.context); + this.students = new Resource$Courses$Students(this.context); + this.teachers = new Resource$Courses$Teachers(this.context); + this.topics = new Resource$Courses$Topics(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses = Resource$Courses; + class Resource$Courses$Aliases { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'alias'], + pathParams: ['alias', 'courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Aliases = Resource$Courses$Aliases; + class Resource$Courses$Announcements { + constructor(context) { + this.context = context; + this.addOnAttachments = + new Resource$Courses$Announcements$Addonattachments(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAddOnContext(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{itemId}/addOnContext').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyAssignees(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Announcements = Resource$Courses$Announcements; + class Resource$Courses$Announcements$Addonattachments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{itemId}/addOnAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{itemId}/addOnAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Announcements$Addonattachments = Resource$Courses$Announcements$Addonattachments; + class Resource$Courses$Coursework { + constructor(context) { + this.context = context; + this.addOnAttachments = new Resource$Courses$Coursework$Addonattachments(this.context); + this.studentSubmissions = + new Resource$Courses$Coursework$Studentsubmissions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAddOnContext(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{itemId}/addOnContext').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyAssignees(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Coursework = Resource$Courses$Coursework; + class Resource$Courses$Coursework$Addonattachments { + constructor(context) { + this.context = context; + this.studentSubmissions = + new Resource$Courses$Coursework$Addonattachments$Studentsubmissions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Coursework$Addonattachments = Resource$Courses$Coursework$Addonattachments; + class Resource$Courses$Coursework$Addonattachments$Studentsubmissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}/studentSubmissions/{submissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId', 'submissionId'], + pathParams: ['attachmentId', 'courseId', 'itemId', 'submissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}/studentSubmissions/{submissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId', 'submissionId'], + pathParams: ['attachmentId', 'courseId', 'itemId', 'submissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Coursework$Addonattachments$Studentsubmissions = Resource$Courses$Coursework$Addonattachments$Studentsubmissions; + class Resource$Courses$Coursework$Studentsubmissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId'], + pathParams: ['courseId', 'courseWorkId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyAttachments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reclaim(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + return(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + turnIn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Coursework$Studentsubmissions = Resource$Courses$Coursework$Studentsubmissions; + class Resource$Courses$Courseworkmaterials { + constructor(context) { + this.context = context; + this.addOnAttachments = + new Resource$Courses$Courseworkmaterials$Addonattachments(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAddOnContext(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnContext').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Courseworkmaterials = Resource$Courses$Courseworkmaterials; + class Resource$Courses$Courseworkmaterials$Addonattachments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId'], + pathParams: ['courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'itemId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'itemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Courseworkmaterials$Addonattachments = Resource$Courses$Courseworkmaterials$Addonattachments; + class Resource$Courses$Posts { + constructor(context) { + this.context = context; + this.addOnAttachments = new Resource$Courses$Posts$Addonattachments(this.context); + } + getAddOnContext(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/posts/{postId}/addOnContext').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'postId'], + pathParams: ['courseId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Posts = Resource$Courses$Posts; + class Resource$Courses$Posts$Addonattachments { + constructor(context) { + this.context = context; + this.studentSubmissions = + new Resource$Courses$Posts$Addonattachments$Studentsubmissions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/posts/{postId}/addOnAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'postId'], + pathParams: ['courseId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'postId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'postId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/posts/{postId}/addOnAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'postId'], + pathParams: ['courseId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/posts/{postId}/addOnAttachments/{attachmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'postId', 'attachmentId'], + pathParams: ['attachmentId', 'courseId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Posts$Addonattachments = Resource$Courses$Posts$Addonattachments; + class Resource$Courses$Posts$Addonattachments$Studentsubmissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}/studentSubmissions/{submissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'postId', 'attachmentId', 'submissionId'], + pathParams: ['attachmentId', 'courseId', 'postId', 'submissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/posts/{postId}/addOnAttachments/{attachmentId}/studentSubmissions/{submissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'postId', 'attachmentId', 'submissionId'], + pathParams: ['attachmentId', 'courseId', 'postId', 'submissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Posts$Addonattachments$Studentsubmissions = Resource$Courses$Posts$Addonattachments$Studentsubmissions; + class Resource$Courses$Students { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Students = Resource$Courses$Students; + class Resource$Courses$Teachers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Teachers = Resource$Courses$Teachers; + class Resource$Courses$Topics { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Topics = Resource$Courses$Topics; + class Resource$Invitations { + constructor(context) { + this.context = context; + } + accept(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Invitations = Resource$Invitations; + class Resource$Registrations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/registrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/registrations/{registrationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['registrationId'], + pathParams: ['registrationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Registrations = Resource$Registrations; + class Resource$Userprofiles { + constructor(context) { + this.context = context; + this.guardianInvitations = new Resource$Userprofiles$Guardianinvitations(this.context); + this.guardians = new Resource$Userprofiles$Guardians(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userprofiles$Guardianinvitations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['studentId', 'invitationId'], + pathParams: ['invitationId', 'studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['studentId', 'invitationId'], + pathParams: ['invitationId', 'studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Userprofiles$Guardianinvitations = Resource$Userprofiles$Guardianinvitations; + class Resource$Userprofiles$Guardians { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['studentId', 'guardianId'], + pathParams: ['guardianId', 'studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['studentId', 'guardianId'], + pathParams: ['guardianId', 'studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Userprofiles$Guardians = Resource$Userprofiles$Guardians; +})(classroom_v1 || (exports.classroom_v1 = classroom_v1 = {})); + + +/***/ }), + +/***/ 35333: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(97135); +Object.defineProperty(exports, "cloudasset_v1", ({ enumerable: true, get: function () { return v1_1.cloudasset_v1; } })); +const v1beta1_1 = __nccwpck_require__(171); +Object.defineProperty(exports, "cloudasset_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.cloudasset_v1beta1; } })); +const v1p1beta1_1 = __nccwpck_require__(26486); +Object.defineProperty(exports, "cloudasset_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_1.cloudasset_v1p1beta1; } })); +const v1p4beta1_1 = __nccwpck_require__(96369); +Object.defineProperty(exports, "cloudasset_v1p4beta1", ({ enumerable: true, get: function () { return v1p4beta1_1.cloudasset_v1p4beta1; } })); +const v1p5beta1_1 = __nccwpck_require__(7685); +Object.defineProperty(exports, "cloudasset_v1p5beta1", ({ enumerable: true, get: function () { return v1p5beta1_1.cloudasset_v1p5beta1; } })); +const v1p7beta1_1 = __nccwpck_require__(39286); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 97135: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudasset_v1; +(function (cloudasset_v1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.assets = new Resource$Assets(this.context); + this.effectiveIamPolicies = new Resource$Effectiveiampolicies(this.context); + this.feeds = new Resource$Feeds(this.context); + this.operations = new Resource$Operations(this.context); + this.savedQueries = new Resource$Savedqueries(this.context); + this.v1 = new Resource$V1(this.context); + } + } + cloudasset_v1.Cloudasset = Cloudasset; + class Resource$Assets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Assets = Resource$Assets; + class Resource$Effectiveiampolicies { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}/effectiveIamPolicies:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Effectiveiampolicies = Resource$Effectiveiampolicies; + class Resource$Feeds { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Feeds = Resource$Feeds; + class Resource$Operations { + constructor(context) { + this.context = context; + } + 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Operations = Resource$Operations; + class Resource$Savedqueries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Savedqueries = Resource$Savedqueries; + class Resource$V1 { + constructor(context) { + this.context = context; + } + analyzeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeIamPolicyLongrunning(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeIamPolicyLongrunning').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeMove(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:analyzeMove').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeOrgPolicyGovernedAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicyGovernedAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeOrgPolicyGovernedContainers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicyGovernedContainers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:queryAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAllIamPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:searchAllIamPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAllResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:searchAllResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$V1 = Resource$V1; +})(cloudasset_v1 || (exports.cloudasset_v1 = cloudasset_v1 = {})); + + +/***/ }), + +/***/ 171: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudasset_v1beta1; +(function (cloudasset_v1beta1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudasset_v1beta1.Cloudasset = Cloudasset; + class Resource$Folders { + constructor(context) { + this.context = context; + this.operations = new Resource$Folders$Operations(this.context); + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Folders = Resource$Folders; + class Resource$Folders$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Folders$Operations = Resource$Folders$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Operations(this.context); + } + batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + } + batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(cloudasset_v1beta1 || (exports.cloudasset_v1beta1 = cloudasset_v1beta1 = {})); + + +/***/ }), + +/***/ 26486: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudasset_v1p1beta1; +(function (cloudasset_v1p1beta1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p1beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iamPolicies = new Resource$Iampolicies(this.context); + this.resources = new Resource$Resources(this.context); + } + } + cloudasset_v1p1beta1.Cloudasset = Cloudasset; + class Resource$Iampolicies { + constructor(context) { + this.context = context; + } + searchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+scope}/iamPolicies:searchAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p1beta1.Resource$Iampolicies = Resource$Iampolicies; + class Resource$Resources { + constructor(context) { + this.context = context; + } + searchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+scope}/resources:searchAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p1beta1.Resource$Resources = Resource$Resources; +})(cloudasset_v1p1beta1 || (exports.cloudasset_v1p1beta1 = cloudasset_v1p1beta1 = {})); + + +/***/ }), + +/***/ 96369: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p4beta1/{+parent}:analyzeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportIamPolicyAnalysis(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p4beta1/{+parent}:exportIamPolicyAnalysis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p4beta1.Resource$V1p4beta1 = Resource$V1p4beta1; +})(cloudasset_v1p4beta1 || (exports.cloudasset_v1p4beta1 = cloudasset_v1p4beta1 = {})); + + +/***/ }), + +/***/ 7685: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudasset_v1p5beta1; +(function (cloudasset_v1p5beta1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p5beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.assets = new Resource$Assets(this.context); + } + } + cloudasset_v1p5beta1.Cloudasset = Cloudasset; + class Resource$Assets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p5beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p5beta1.Resource$Assets = Resource$Assets; +})(cloudasset_v1p5beta1 || (exports.cloudasset_v1p5beta1 = cloudasset_v1p5beta1 = {})); + + +/***/ }), + +/***/ 39286: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudasset_v1p7beta1; +(function (cloudasset_v1p7beta1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p7beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.v1p7beta1 = new Resource$V1p7beta1(this.context); + } + } + cloudasset_v1p7beta1.Cloudasset = Cloudasset; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p7beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p7beta1.Resource$Operations = Resource$Operations; + class Resource$V1p7beta1 { + constructor(context) { + this.context = context; + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p7beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p7beta1.Resource$V1p7beta1 = Resource$V1p7beta1; +})(cloudasset_v1p7beta1 || (exports.cloudasset_v1p7beta1 = cloudasset_v1p7beta1 = {})); + + +/***/ }), + +/***/ 12897: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(72384); +Object.defineProperty(exports, "cloudbilling_v1", ({ enumerable: true, get: function () { return v1_1.cloudbilling_v1; } })); +const v1beta_1 = __nccwpck_require__(95238); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 72384: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.organizations = new Resource$Organizations(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); + this.subAccounts = new Resource$Billingaccounts$Subaccounts(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Projects { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Billingaccounts$Projects = Resource$Billingaccounts$Projects; + class Resource$Billingaccounts$Subaccounts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/subAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/subAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Billingaccounts$Subaccounts = Resource$Billingaccounts$Subaccounts; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.billingAccounts = new Resource$Organizations$Billingaccounts(this.context); + } + } + cloudbilling_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Billingaccounts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+destinationParent}/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['destinationParent', 'name'], + pathParams: ['destinationParent', 'name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Organizations$Billingaccounts = Resource$Organizations$Billingaccounts; + class Resource$Projects { + constructor(context) { + this.context = context; + } + getBillingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateBillingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Services = Resource$Services; + class Resource$Services$Skus { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Services$Skus = Resource$Services$Skus; +})(cloudbilling_v1 || (exports.cloudbilling_v1 = cloudbilling_v1 = {})); + + +/***/ }), + +/***/ 95238: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.skuGroups = new Resource$Skugroups(this.context); + this.skus = new Resource$Skus(this.context); + this.v1beta = new Resource$V1beta(this.context); + } + } + cloudbilling_v1beta.Cloudbilling = Cloudbilling; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.services = new Resource$Billingaccounts$Services(this.context); + this.skuGroups = new Resource$Billingaccounts$Skugroups(this.context); + this.skus = new Resource$Billingaccounts$Skus(this.context); + } + estimateCostScenario(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+billingAccount}:estimateCostScenario').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['billingAccount'], + pathParams: ['billingAccount'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Services { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Billingaccounts$Services = Resource$Billingaccounts$Services; + class Resource$Billingaccounts$Skugroups { + constructor(context) { + this.context = context; + this.skus = new Resource$Billingaccounts$Skugroups$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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/skuGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Billingaccounts$Skugroups = Resource$Billingaccounts$Skugroups; + class Resource$Billingaccounts$Skugroups$Skus { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Billingaccounts$Skugroups$Skus = Resource$Billingaccounts$Skugroups$Skus; + class Resource$Billingaccounts$Skus { + constructor(context) { + this.context = context; + this.price = new Resource$Billingaccounts$Skus$Price(this.context); + this.prices = new Resource$Billingaccounts$Skus$Prices(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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Billingaccounts$Skus = Resource$Billingaccounts$Skus; + class Resource$Billingaccounts$Skus$Price { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_v1beta.Resource$Billingaccounts$Skus$Price = Resource$Billingaccounts$Skus$Price; + class Resource$Billingaccounts$Skus$Prices { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/prices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Billingaccounts$Skus$Prices = Resource$Billingaccounts$Skus$Prices; + class Resource$Skugroups { + constructor(context) { + this.context = context; + this.skus = new Resource$Skugroups$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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/skuGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Skugroups = Resource$Skugroups; + class Resource$Skugroups$Skus { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Skugroups$Skus = Resource$Skugroups$Skus; + class Resource$Skus { + constructor(context) { + this.context = context; + this.price = new Resource$Skus$Price(this.context); + this.prices = new Resource$Skus$Prices(this.context); + } + } + cloudbilling_v1beta.Resource$Skus = Resource$Skus; + class Resource$Skus$Price { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_v1beta.Resource$Skus$Price = Resource$Skus$Price; + class Resource$Skus$Prices { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/prices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Skus$Prices = Resource$Skus$Prices; + class Resource$V1beta { + constructor(context) { + this.context = context; + } + estimateCostScenario(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta:estimateCostScenario').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$V1beta = Resource$V1beta; +})(cloudbilling_v1beta || (exports.cloudbilling_v1beta = cloudbilling_v1beta = {})); + + +/***/ }), + +/***/ 69302: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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_v2 = 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__(40524); +const v1_1 = __nccwpck_require__(88354); +Object.defineProperty(exports, "cloudbuild_v1", ({ enumerable: true, get: function () { return v1_1.cloudbuild_v1; } })); +const v1alpha1_1 = __nccwpck_require__(88904); +Object.defineProperty(exports, "cloudbuild_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.cloudbuild_v1alpha1; } })); +const v1alpha2_1 = __nccwpck_require__(88105); +Object.defineProperty(exports, "cloudbuild_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.cloudbuild_v1alpha2; } })); +const v1beta1_1 = __nccwpck_require__(12226); +Object.defineProperty(exports, "cloudbuild_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.cloudbuild_v1beta1; } })); +const v2_1 = __nccwpck_require__(8372); +Object.defineProperty(exports, "cloudbuild_v2", ({ enumerable: true, get: function () { return v2_1.cloudbuild_v2; } })); +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, + v2: v2_1.cloudbuild_v2.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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 88354: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var cloudbuild_v1; +(function (cloudbuild_v1) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1'); + * ``` + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.githubDotComWebhook = new Resource$Githubdotcomwebhook(this.context); + this.locations = new Resource$Locations(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.v1 = new Resource$V1(this.context); + } + } + cloudbuild_v1.Cloudbuild = Cloudbuild; + class Resource$Githubdotcomwebhook { + constructor(context) { + this.context = context; + } + receive(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/githubDotComWebhook:receive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Githubdotcomwebhook = Resource$Githubdotcomwebhook; + class Resource$Locations { + constructor(context) { + this.context = context; + } + regionalWebhook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}/regionalWebhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Locations = Resource$Locations; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.builds = new Resource$Projects$Builds(this.context); + this.githubEnterpriseConfigs = + new Resource$Projects$Githubenterpriseconfigs(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.triggers = new Resource$Projects$Triggers(this.context); + } + } + cloudbuild_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Builds { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retry(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:retry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Builds = Resource$Projects$Builds; + class Resource$Projects$Githubenterpriseconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Githubenterpriseconfigs = Resource$Projects$Githubenterpriseconfigs; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.bitbucketServerConfigs = + new Resource$Projects$Locations$Bitbucketserverconfigs(this.context); + this.builds = new Resource$Projects$Locations$Builds(this.context); + this.githubEnterpriseConfigs = + new Resource$Projects$Locations$Githubenterpriseconfigs(this.context); + this.gitLabConfigs = new Resource$Projects$Locations$Gitlabconfigs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.triggers = new Resource$Projects$Locations$Triggers(this.context); + this.workerPools = new Resource$Projects$Locations$Workerpools(this.context); + } + getDefaultServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Bitbucketserverconfigs { + constructor(context) { + this.context = context; + this.connectedRepositories = + new Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories(this.context); + this.repos = new Resource$Projects$Locations$Bitbucketserverconfigs$Repos(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bitbucketServerConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bitbucketServerConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeBitbucketServerConnectedRepository(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+config}:removeBitbucketServerConnectedRepository').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['config'], + pathParams: ['config'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Bitbucketserverconfigs = Resource$Projects$Locations$Bitbucketserverconfigs; + class Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectedRepositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories = Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories; + class Resource$Projects$Locations$Bitbucketserverconfigs$Repos { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Bitbucketserverconfigs$Repos = Resource$Projects$Locations$Bitbucketserverconfigs$Repos; + class Resource$Projects$Locations$Builds { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retry(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:retry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Builds = Resource$Projects$Locations$Builds; + class Resource$Projects$Locations$Githubenterpriseconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Githubenterpriseconfigs = Resource$Projects$Locations$Githubenterpriseconfigs; + class Resource$Projects$Locations$Gitlabconfigs { + constructor(context) { + this.context = context; + this.connectedRepositories = + new Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories(this.context); + this.repos = new Resource$Projects$Locations$Gitlabconfigs$Repos(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/gitLabConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/gitLabConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeGitLabConnectedRepository(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+config}:removeGitLabConnectedRepository').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['config'], + pathParams: ['config'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Gitlabconfigs = Resource$Projects$Locations$Gitlabconfigs; + class Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectedRepositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories = Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories; + class Resource$Projects$Locations$Gitlabconfigs$Repos { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Gitlabconfigs$Repos = Resource$Projects$Locations$Gitlabconfigs$Repos; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Triggers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + webhook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:webhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; + class Resource$Projects$Locations$Workerpools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Workerpools = Resource$Projects$Locations$Workerpools; + class Resource$Projects$Triggers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + webhook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{trigger}:webhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'trigger'], + pathParams: ['projectId', 'trigger'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Triggers = Resource$Projects$Triggers; + class Resource$V1 { + constructor(context) { + this.context = context; + } + webhook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/webhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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 = cloudbuild_v1 = {})); + + +/***/ }), + +/***/ 88904: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 = cloudbuild_v1alpha1 = {})); + + +/***/ }), + +/***/ 88105: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudbuild_v1alpha2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var cloudbuild_v1alpha2; +(function (cloudbuild_v1alpha2) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1alpha2'); + * ``` + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudbuild_v1alpha2.Cloudbuild = Cloudbuild; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.workerPools = new Resource$Projects$Workerpools(this.context); + } + } + cloudbuild_v1alpha2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + cloudbuild_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Workerpools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1alpha2.Resource$Projects$Workerpools = Resource$Projects$Workerpools; +})(cloudbuild_v1alpha2 || (exports.cloudbuild_v1alpha2 = cloudbuild_v1alpha2 = {})); + + +/***/ }), + +/***/ 12226: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + } + cloudbuild_v1beta1.Resource$Projects$Locations$Workerpools = Resource$Projects$Locations$Workerpools; +})(cloudbuild_v1beta1 || (exports.cloudbuild_v1beta1 = cloudbuild_v1beta1 = {})); + + +/***/ }), + +/***/ 8372: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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__(40524); +var cloudbuild_v2; +(function (cloudbuild_v2) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v2'); + * ``` + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudbuild_v2.Cloudbuild = Cloudbuild; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudbuild_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connections = new Resource$Projects$Locations$Connections(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; + this.repositories = + new Resource$Projects$Locations$Connections$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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchLinkableRepositories(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+connection}:fetchLinkableRepositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['connection'], + pathParams: ['connection'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + processWebhook(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+parent}/connections:processWebhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v2.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connections$Repositories { + constructor(context) { + this.context = context; + } + accessReadToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+repository}:accessReadToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['repository'], + pathParams: ['repository'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + accessReadWriteToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+repository}:accessReadWriteToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['repository'], + pathParams: ['repository'], + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/repositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchGitRefs(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+repository}:fetchGitRefs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['repository'], + pathParams: ['repository'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v2.Resource$Projects$Locations$Connections$Repositories = Resource$Projects$Locations$Connections$Repositories; + 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 + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(cloudbuild_v2 || (exports.cloudbuild_v2 = cloudbuild_v2 = {})); + + +/***/ }), + +/***/ 2646: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(10495); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 10495: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.integrators = new Resource$Integrators(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); + this.skuGroups = new Resource$Accounts$Skugroups(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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listSubscribers(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listSubscribers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listTransferableOffers(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listTransferableOffers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listTransferableSkus(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listTransferableSkus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + register(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+account}:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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) { + let params = (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}:unregister').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + 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 || + {}); + 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}/channelPartnerLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/channelPartnerLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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}/channelPartnerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/channelPartnerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs = Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs; + class Resource$Accounts$Channelpartnerlinks$Customers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + 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').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customers:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + 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').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customers:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPurchasableOffers(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+customer}:listPurchasableOffers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listPurchasableSkus(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+customer}:listPurchasableSkus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + provisionCloudIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+customer}:provisionCloudIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + queryEligibleBillingAccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+customer}:queryEligibleBillingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + transferEntitlements(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:transferEntitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + transferEntitlementsToGoogle(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:transferEntitlementsToGoogle').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Accounts$Customers = Resource$Accounts$Customers; + class Resource$Accounts$Customers$Customerrepricingconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/customerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/customerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + changeOffer(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}:changeOffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + changeParameters(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}:changeParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + changeRenewalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:changeRenewalSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/entitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/entitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listEntitlementChanges(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listEntitlementChanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + lookupOffer(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+entitlement}:lookupOffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['entitlement'], + pathParams: ['entitlement'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startPaidService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:startPaidService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suspend(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + 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}/offers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Accounts$Offers = Resource$Accounts$Offers; + class Resource$Accounts$Reportjobs { + constructor(context) { + this.context = context; + } + fetchReportResults(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+reportJob}:fetchReportResults').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['reportJob'], + pathParams: ['reportJob'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Accounts$Reportjobs = Resource$Accounts$Reportjobs; + class Resource$Accounts$Reports { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + 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}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Accounts$Reports = Resource$Accounts$Reports; + class Resource$Accounts$Skugroups { + constructor(context) { + this.context = context; + this.billableSkus = new Resource$Accounts$Skugroups$Billableskus(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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/skuGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Accounts$Skugroups = Resource$Accounts$Skugroups; + class Resource$Accounts$Skugroups$Billableskus { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/billableSkus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Accounts$Skugroups$Billableskus = Resource$Accounts$Skugroups$Billableskus; + class Resource$Integrators { + constructor(context) { + this.context = context; + } + listSubscribers(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+integrator}:listSubscribers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['integrator'], + pathParams: ['integrator'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + register(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+integrator}:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['integrator'], + pathParams: ['integrator'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unregister(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+integrator}:unregister').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['integrator'], + pathParams: ['integrator'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Integrators = Resource$Integrators; + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 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/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Products = Resource$Products; + class Resource$Products$Skus { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Products$Skus = Resource$Products$Skus; +})(cloudchannel_v1 || (exports.cloudchannel_v1 = cloudchannel_v1 = {})); + + +/***/ }), + +/***/ 54287: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.cloudcontrolspartner_v1beta = exports.cloudcontrolspartner_v1 = exports.auth = exports.cloudcontrolspartner = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(40686); +Object.defineProperty(exports, "cloudcontrolspartner_v1", ({ enumerable: true, get: function () { return v1_1.cloudcontrolspartner_v1; } })); +const v1beta_1 = __nccwpck_require__(65691); +Object.defineProperty(exports, "cloudcontrolspartner_v1beta", ({ enumerable: true, get: function () { return v1beta_1.cloudcontrolspartner_v1beta; } })); +exports.VERSIONS = { + v1: v1_1.cloudcontrolspartner_v1.Cloudcontrolspartner, + v1beta: v1beta_1.cloudcontrolspartner_v1beta.Cloudcontrolspartner, +}; +function cloudcontrolspartner(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudcontrolspartner', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudcontrolspartner = cloudcontrolspartner; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 40686: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudcontrolspartner_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var cloudcontrolspartner_v1; +(function (cloudcontrolspartner_v1) { + /** + * Cloud Controls Partner API + * + * Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudcontrolspartner = google.cloudcontrolspartner('v1'); + * ``` + */ + class Cloudcontrolspartner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + cloudcontrolspartner_v1.Cloudcontrolspartner = Cloudcontrolspartner; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + cloudcontrolspartner_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.customers = new Resource$Organizations$Locations$Customers(this.context); + } + getPartner(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Customers { + constructor(context) { + this.context = context; + this.workloads = new Resource$Organizations$Locations$Customers$Workloads(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://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1.Resource$Organizations$Locations$Customers = Resource$Organizations$Locations$Customers; + class Resource$Organizations$Locations$Customers$Workloads { + constructor(context) { + this.context = context; + this.accessApprovalRequests = + new Resource$Organizations$Locations$Customers$Workloads$Accessapprovalrequests(this.context); + this.violations = + new Resource$Organizations$Locations$Customers$Workloads$Violations(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://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEkmConnections(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPartnerPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1.Resource$Organizations$Locations$Customers$Workloads = Resource$Organizations$Locations$Customers$Workloads; + class Resource$Organizations$Locations$Customers$Workloads$Accessapprovalrequests { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/accessApprovalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1.Resource$Organizations$Locations$Customers$Workloads$Accessapprovalrequests = Resource$Organizations$Locations$Customers$Workloads$Accessapprovalrequests; + class Resource$Organizations$Locations$Customers$Workloads$Violations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/violations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1.Resource$Organizations$Locations$Customers$Workloads$Violations = Resource$Organizations$Locations$Customers$Workloads$Violations; +})(cloudcontrolspartner_v1 || (exports.cloudcontrolspartner_v1 = cloudcontrolspartner_v1 = {})); + + +/***/ }), + +/***/ 65691: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudcontrolspartner_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__(40524); +var cloudcontrolspartner_v1beta; +(function (cloudcontrolspartner_v1beta) { + /** + * Cloud Controls Partner API + * + * Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudcontrolspartner = google.cloudcontrolspartner('v1beta'); + * ``` + */ + class Cloudcontrolspartner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + cloudcontrolspartner_v1beta.Cloudcontrolspartner = Cloudcontrolspartner; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + cloudcontrolspartner_v1beta.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.customers = new Resource$Organizations$Locations$Customers(this.context); + } + getPartner(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1beta.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Customers { + constructor(context) { + this.context = context; + this.workloads = new Resource$Organizations$Locations$Customers$Workloads(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://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1beta.Resource$Organizations$Locations$Customers = Resource$Organizations$Locations$Customers; + class Resource$Organizations$Locations$Customers$Workloads { + constructor(context) { + this.context = context; + this.accessApprovalRequests = + new Resource$Organizations$Locations$Customers$Workloads$Accessapprovalrequests(this.context); + this.violations = + new Resource$Organizations$Locations$Customers$Workloads$Violations(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://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEkmConnections(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPartnerPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1beta.Resource$Organizations$Locations$Customers$Workloads = Resource$Organizations$Locations$Customers$Workloads; + class Resource$Organizations$Locations$Customers$Workloads$Accessapprovalrequests { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/accessApprovalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1beta.Resource$Organizations$Locations$Customers$Workloads$Accessapprovalrequests = Resource$Organizations$Locations$Customers$Workloads$Accessapprovalrequests; + class Resource$Organizations$Locations$Customers$Workloads$Violations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudcontrolspartner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/violations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudcontrolspartner_v1beta.Resource$Organizations$Locations$Customers$Workloads$Violations = Resource$Organizations$Locations$Customers$Workloads$Violations; +})(cloudcontrolspartner_v1beta || (exports.cloudcontrolspartner_v1beta = cloudcontrolspartner_v1beta = {})); + + +/***/ }), + +/***/ 70259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = exports.clouddebugger_v2 = exports.auth = exports.clouddebugger = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v2_1 = __nccwpck_require__(15660); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 15660: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var clouddebugger_v2; +(function (clouddebugger_v2) { + /** + * Cloud Debugger API (Deprecated) + * + * Examines the call stack and variables of a running application without stopping or slowing it down. (Deprecated) + * + * @example + * ```js + * const {google} = require('googleapis'); + * const clouddebugger = google.clouddebugger('v2'); + * ``` + */ + class Clouddebugger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.controller = new Resource$Controller(this.context); + this.debugger = new Resource$Debugger(this.context); + } + } + clouddebugger_v2.Clouddebugger = Clouddebugger; + class Resource$Controller { + constructor(context) { + this.context = context; + this.debuggees = new Resource$Controller$Debuggees(this.context); + } + } + clouddebugger_v2.Resource$Controller = Resource$Controller; + class Resource$Controller$Debuggees { + constructor(context) { + this.context = context; + this.breakpoints = new Resource$Controller$Debuggees$Breakpoints(this.context); + } + register(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddebugger_v2.Resource$Controller$Debuggees = Resource$Controller$Debuggees; + class Resource$Controller$Debuggees$Breakpoints { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['debuggeeId', 'id'], + pathParams: ['debuggeeId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddebugger_v2.Resource$Controller$Debuggees$Breakpoints = Resource$Controller$Debuggees$Breakpoints; + class Resource$Debugger { + constructor(context) { + this.context = context; + this.debuggees = new Resource$Debugger$Debuggees(this.context); + } + } + clouddebugger_v2.Resource$Debugger = Resource$Debugger; + class Resource$Debugger$Debuggees { + constructor(context) { + this.context = context; + this.breakpoints = new Resource$Debugger$Debuggees$Breakpoints(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddebugger_v2.Resource$Debugger$Debuggees = Resource$Debugger$Debuggees; + class Resource$Debugger$Debuggees$Breakpoints { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['debuggeeId', 'breakpointId'], + pathParams: ['breakpointId', 'debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId', 'breakpointId'], + pathParams: ['breakpointId', 'debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddebugger_v2.Resource$Debugger$Debuggees$Breakpoints = Resource$Debugger$Debuggees$Breakpoints; +})(clouddebugger_v2 || (exports.clouddebugger_v2 = clouddebugger_v2 = {})); + + +/***/ }), + +/***/ 47970: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(71039); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 71039: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var clouddeploy_v1; +(function (clouddeploy_v1) { + /** + * 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.customTargetTypes = + new Resource$Projects$Locations$Customtargettypes(this.context); + this.deliveryPipelines = + new Resource$Projects$Locations$Deliverypipelines(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.targets = new Resource$Projects$Locations$Targets(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Customtargettypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/customTargetTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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}/customTargetTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Customtargettypes = Resource$Projects$Locations$Customtargettypes; + class Resource$Projects$Locations$Deliverypipelines { + constructor(context) { + this.context = context; + this.automationRuns = + new Resource$Projects$Locations$Deliverypipelines$Automationruns(this.context); + this.automations = + new Resource$Projects$Locations$Deliverypipelines$Automations(this.context); + this.releases = + new Resource$Projects$Locations$Deliverypipelines$Releases(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deliveryPipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollbackTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:rollbackTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines = Resource$Projects$Locations$Deliverypipelines; + class Resource$Projects$Locations$Deliverypipelines$Automationruns { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/automationRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Automationruns = Resource$Projects$Locations$Deliverypipelines$Automationruns; + class Resource$Projects$Locations$Deliverypipelines$Automations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/automations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/automations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Automations = Resource$Projects$Locations$Deliverypipelines$Automations; + class Resource$Projects$Locations$Deliverypipelines$Releases { + constructor(context) { + this.context = context; + this.rollouts = + new Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts(this.context); + } + abandon(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:abandon').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Releases = Resource$Projects$Locations$Deliverypipelines$Releases; + class Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts { + constructor(context) { + this.context = context; + this.jobRuns = + new Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns(this.context); + } + advance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:advance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + ignoreJob(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+rollout}:ignoreJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['rollout'], + pathParams: ['rollout'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retryJob(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+rollout}:retryJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['rollout'], + pathParams: ['rollout'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts = Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts; + class Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + terminate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:terminate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns = Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Targets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/targets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/targets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Targets = Resource$Projects$Locations$Targets; +})(clouddeploy_v1 || (exports.clouddeploy_v1 = clouddeploy_v1 = {})); + + +/***/ }), + +/***/ 32510: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1beta1_1 = __nccwpck_require__(37343); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 37343: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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); + this.locations = new Resource$Projects$Locations(this.context); + } + deleteEvents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Events { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + report(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Events = Resource$Projects$Events; + class Resource$Projects$Groups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+groupName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['groupName'], + pathParams: ['groupName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Groups = Resource$Projects$Groups; + class Resource$Projects$Groupstats { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/groupStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Groupstats = Resource$Projects$Groupstats; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.events = new Resource$Projects$Locations$Events(this.context); + this.groups = new Resource$Projects$Locations$Groups(this.context); + this.groupStats = new Resource$Projects$Locations$Groupstats(this.context); + } + deleteEvents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Events { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Locations$Events = Resource$Projects$Locations$Events; + class Resource$Projects$Locations$Groups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+groupName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['groupName'], + pathParams: ['groupName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Locations$Groups = Resource$Projects$Locations$Groups; + class Resource$Projects$Locations$Groupstats { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/groupStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Locations$Groupstats = Resource$Projects$Locations$Groupstats; +})(clouderrorreporting_v1beta1 || (exports.clouderrorreporting_v1beta1 = clouderrorreporting_v1beta1 = {})); + + +/***/ }), + +/***/ 82277: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(34746); +Object.defineProperty(exports, "cloudfunctions_v1", ({ enumerable: true, get: function () { return v1_1.cloudfunctions_v1; } })); +const v1beta2_1 = __nccwpck_require__(81442); +Object.defineProperty(exports, "cloudfunctions_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.cloudfunctions_v1beta2; } })); +const v2_1 = __nccwpck_require__(47628); +Object.defineProperty(exports, "cloudfunctions_v2", ({ enumerable: true, get: function () { return v2_1.cloudfunctions_v2; } })); +const v2alpha_1 = __nccwpck_require__(3339); +Object.defineProperty(exports, "cloudfunctions_v2alpha", ({ enumerable: true, get: function () { return v2alpha_1.cloudfunctions_v2alpha; } })); +const v2beta_1 = __nccwpck_require__(85790); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 34746: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudfunctions_v1; +(function (cloudfunctions_v1) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v1'); + * ``` + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v1.Cloudfunctions = Cloudfunctions; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + call(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; +})(cloudfunctions_v1 || (exports.cloudfunctions_v1 = cloudfunctions_v1 = {})); + + +/***/ }), + +/***/ 81442: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudfunctions_v1beta2; +(function (cloudfunctions_v1beta2) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v1beta2'); + * + * @namespace cloudfunctions + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Cloudfunctions + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v1beta2.Cloudfunctions = Cloudfunctions; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + call(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; +})(cloudfunctions_v1beta2 || (exports.cloudfunctions_v1beta2 = cloudfunctions_v1beta2 = {})); + + +/***/ }), + +/***/ 47628: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudfunctions_v2; +(function (cloudfunctions_v2) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v2'); + * ``` + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v2.Cloudfunctions = Cloudfunctions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtimes = new Resource$Projects$Locations$Runtimes(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + abortFunctionUpgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:abortFunctionUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + commitFunctionUpgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:commitFunctionUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + redirectFunctionUpgradeTraffic(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:redirectFunctionUpgradeTraffic').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollbackFunctionUpgradeTraffic(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:rollbackFunctionUpgradeTraffic').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setupFunctionUpgradeConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:setupFunctionUpgradeConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtimes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2 || (exports.cloudfunctions_v2 = cloudfunctions_v2 = {})); + + +/***/ }), + +/***/ 3339: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + abortFunctionUpgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}:abortFunctionUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + commitFunctionUpgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}:commitFunctionUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + redirectFunctionUpgradeTraffic(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}:redirectFunctionUpgradeTraffic').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollbackFunctionUpgradeTraffic(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}:rollbackFunctionUpgradeTraffic').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setupFunctionUpgradeConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}:setupFunctionUpgradeConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2alpha.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2alpha || (exports.cloudfunctions_v2alpha = cloudfunctions_v2alpha = {})); + + +/***/ }), + +/***/ 85790: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudfunctions_v2beta; +(function (cloudfunctions_v2beta) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v2beta'); + * ``` + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v2beta.Cloudfunctions = Cloudfunctions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v2beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtimes = new Resource$Projects$Locations$Runtimes(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + abortFunctionUpgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:abortFunctionUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + commitFunctionUpgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:commitFunctionUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + redirectFunctionUpgradeTraffic(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:redirectFunctionUpgradeTraffic').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollbackFunctionUpgradeTraffic(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:rollbackFunctionUpgradeTraffic').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setupFunctionUpgradeConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:setupFunctionUpgradeConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2beta.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2beta || (exports.cloudfunctions_v2beta = cloudfunctions_v2beta = {})); + + +/***/ }), + +/***/ 33523: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(89044); +Object.defineProperty(exports, "cloudidentity_v1", ({ enumerable: true, get: function () { return v1_1.cloudidentity_v1; } })); +const v1beta1_1 = __nccwpck_require__(36269); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 89044: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 || {}); + 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/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + isInvitableUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}:isInvitableUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/userinvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + send(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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 || {}); + 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/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + block(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}:block').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/deviceUsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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 + '/v1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/clientStates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || {}); + 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/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/groups:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 = + {}; + 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:checkTransitiveMembership').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getMembershipGraph(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:getMembershipGraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchDirectGroups(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:searchDirectGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudidentity_v1.Resource$Groups$Memberships = Resource$Groups$Memberships; + class Resource$Inboundsamlssoprofiles { + constructor(context) { + this.context = context; + this.idpCredentials = new Resource$Inboundsamlssoprofiles$Idpcredentials(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudidentity_v1.Resource$Inboundsamlssoprofiles = Resource$Inboundsamlssoprofiles; + class Resource$Inboundsamlssoprofiles$Idpcredentials { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + 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}/idpCredentials:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/idpCredentials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudidentity_v1.Resource$Inboundssoassignments = Resource$Inboundssoassignments; +})(cloudidentity_v1 || (exports.cloudidentity_v1 = cloudidentity_v1 = {})); + + +/***/ }), + +/***/ 36269: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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) { + let params = (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}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + isInvitableUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:isInvitableUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/userinvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + send(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudidentity_v1beta1.Resource$Customers$Userinvitations = Resource$Customers$Userinvitations; + class Resource$Devices { + constructor(context) { + this.context = context; + this.deviceUsers = new Resource$Devices$Deviceusers(this.context); + } + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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 || {}); + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + 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}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + block(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:block').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/deviceUsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudidentity_v1beta1.Resource$Devices$Deviceusers = Resource$Devices$Deviceusers; + class Resource$Devices$Deviceusers$Clientstates { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 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/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/groups:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudidentity_v1beta1.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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+parent}/memberships:checkTransitiveMembership').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getMembershipGraph(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/memberships:getMembershipGraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchDirectGroups(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/memberships:searchDirectGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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 + '/v1beta1/{+parent}/memberships:searchTransitiveGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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 + + '/v1beta1/{+parent}/memberships:searchTransitiveMemberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || + {}); + 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/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/{+parent}/idpCredentials:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/idpCredentials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudidentity_v1beta1.Resource$Inboundssoassignments = Resource$Inboundssoassignments; + class Resource$Orgunits { + constructor(context) { + this.context = context; + this.memberships = new Resource$Orgunits$Memberships(this.context); + } + } + cloudidentity_v1beta1.Resource$Orgunits = Resource$Orgunits; + class Resource$Orgunits$Memberships { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let 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/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudidentity_v1beta1.Resource$Orgunits$Memberships = Resource$Orgunits$Memberships; +})(cloudidentity_v1beta1 || (exports.cloudidentity_v1beta1 = cloudidentity_v1beta1 = {})); + + +/***/ }), + +/***/ 78613: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(64753); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 64753: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var cloudiot_v1; +(function (cloudiot_v1) { + /** + * Cloud IoT API + * + * Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudiot = google.cloudiot('v1'); + * ``` + */ + class Cloudiot { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudiot_v1.Cloudiot = Cloudiot; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudiot_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.registries = new Resource$Projects$Locations$Registries(this.context); + } + } + cloudiot_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Registries { + constructor(context) { + this.context = context; + this.devices = new Resource$Projects$Locations$Registries$Devices(this.context); + this.groups = new Resource$Projects$Locations$Registries$Groups(this.context); + } + bindDeviceToGateway(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:bindDeviceToGateway').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unbindDeviceFromGateway(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:unbindDeviceFromGateway').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries = Resource$Projects$Locations$Registries; + class Resource$Projects$Locations$Registries$Devices { + constructor(context) { + this.context = context; + this.configVersions = + new Resource$Projects$Locations$Registries$Devices$Configversions(this.context); + this.states = new Resource$Projects$Locations$Registries$Devices$States(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyCloudToDeviceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:modifyCloudToDeviceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendCommandToDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:sendCommandToDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices = Resource$Projects$Locations$Registries$Devices; + class Resource$Projects$Locations$Registries$Devices$Configversions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/configVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices$Configversions = Resource$Projects$Locations$Registries$Devices$Configversions; + class Resource$Projects$Locations$Registries$Devices$States { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/states').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices$States = Resource$Projects$Locations$Registries$Devices$States; + class Resource$Projects$Locations$Registries$Groups { + constructor(context) { + this.context = context; + this.devices = new Resource$Projects$Locations$Registries$Groups$Devices(this.context); + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Groups = Resource$Projects$Locations$Registries$Groups; + class Resource$Projects$Locations$Registries$Groups$Devices { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Groups$Devices = Resource$Projects$Locations$Registries$Groups$Devices; +})(cloudiot_v1 || (exports.cloudiot_v1 = cloudiot_v1 = {})); + + +/***/ }), + +/***/ 72034: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v1_1 = __nccwpck_require__(37661); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 37661: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var cloudkms_v1; +(function (cloudkms_v1) { + /** + * Cloud Key Management Service (KMS) API + * + * Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudkms = google.cloudkms('v1'); + * ``` + */ + class Cloudkms { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudkms_v1.Cloudkms = Cloudkms; + class Resource$Folders { + constructor(context) { + this.context = context; + } + getAutokeyConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAutokeyConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Folders = Resource$Folders; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + showEffectiveAutokeyConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:showEffectiveAutokeyConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.ekmConfig = new Resource$Projects$Locations$Ekmconfig(this.context); + this.ekmConnections = new Resource$Projects$Locations$Ekmconnections(this.context); + this.keyHandles = new Resource$Projects$Locations$Keyhandles(this.context); + this.keyRings = new Resource$Projects$Locations$Keyrings(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + generateRandomBytes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}:generateRandomBytes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEkmConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateEkmConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Ekmconfig { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Ekmconfig = Resource$Projects$Locations$Ekmconfig; + class Resource$Projects$Locations$Ekmconnections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/ekmConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/ekmConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyConnectivity(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:verifyConnectivity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Ekmconnections = Resource$Projects$Locations$Ekmconnections; + class Resource$Projects$Locations$Keyhandles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/keyHandles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/keyHandles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyhandles = Resource$Projects$Locations$Keyhandles; + class Resource$Projects$Locations$Keyrings { + constructor(context) { + this.context = context; + this.cryptoKeys = new Resource$Projects$Locations$Keyrings$Cryptokeys(this.context); + this.importJobs = new Resource$Projects$Locations$Keyrings$Importjobs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings = Resource$Projects$Locations$Keyrings; + class Resource$Projects$Locations$Keyrings$Cryptokeys { + constructor(context) { + this.context = context; + this.cryptoKeyVersions = + new Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + decrypt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:decrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + encrypt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:encrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePrimaryVersion(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:updatePrimaryVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys = Resource$Projects$Locations$Keyrings$Cryptokeys; + class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { + constructor(context) { + this.context = context; + } + asymmetricDecrypt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:asymmetricDecrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + destroy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPublicKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/publicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + macSign(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:macSign').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + macVerify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:macVerify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rawDecrypt(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:rawDecrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rawEncrypt(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:rawEncrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions = Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions; + class Resource$Projects$Locations$Keyrings$Importjobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Importjobs = Resource$Projects$Locations$Keyrings$Importjobs; + 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(cloudkms_v1 || (exports.cloudkms_v1 = cloudkms_v1 = {})); + + +/***/ }), + +/***/ 35191: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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 = __nccwpck_require__(40524); +const v2_1 = __nccwpck_require__(31415); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 31415: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +var cloudprofiler_v2; +(function (cloudprofiler_v2) { + /** + * Cloud Profiler API + * + * Manages continuous profiling information. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudprofiler = google.cloudprofiler('v2'); + * ``` + */ + class Cloudprofiler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudprofiler_v2.Cloudprofiler = Cloudprofiler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.profiles = new Resource$Projects$Profiles(this.context); + } + } + cloudprofiler_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Profiles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createOffline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/profiles:createOffline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudprofiler_v2.Resource$Projects$Profiles = Resource$Projects$Profiles; +})(cloudprofiler_v2 || (exports.cloudprofiler_v2 = cloudprofiler_v2 = {})); + + +/***/ }), + +/***/ 14621: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(70958); +Object.defineProperty(exports, "cloudresourcemanager_v1", ({ enumerable: true, get: function () { return v1_1.cloudresourcemanager_v1; } })); +const v1beta1_1 = __nccwpck_require__(14478); +Object.defineProperty(exports, "cloudresourcemanager_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.cloudresourcemanager_v1beta1; } })); +const v2_1 = __nccwpck_require__(24355); +Object.defineProperty(exports, "cloudresourcemanager_v2", ({ enumerable: true, get: function () { return v2_1.cloudresourcemanager_v2; } })); +const v2beta1_1 = __nccwpck_require__(33945); +Object.defineProperty(exports, "cloudresourcemanager_v2beta1", ({ enumerable: true, get: function () { return v2beta1_1.cloudresourcemanager_v2beta1; } })); +const v3_1 = __nccwpck_require__(84567); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 70958: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 || {}); + 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/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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_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; + 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/liens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/liens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_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; + 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', + apiVersion: '', + }, options), + params, + 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_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + 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 + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 + '/v1/organizations:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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 + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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_v1.Resource$Organizations = Resource$Organizations; + class Resource$Projects { + constructor(context) { + this.context = context; + } + clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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) { + let params = (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').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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 + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAncestry(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + 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 + '/v1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 + '/v1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 + '/v1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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 = cloudresourcemanager_v1 = {})); + + +/***/ }), + +/***/ 14478: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudresourcemanager_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var cloudresourcemanager_v1beta1; +(function (cloudresourcemanager_v1beta1) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v1beta1'); + * ``` + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudresourcemanager_v1beta1.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Organizations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/organizations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudresourcemanager_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Projects { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAncestry(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudresourcemanager_v1beta1.Resource$Projects = Resource$Projects; +})(cloudresourcemanager_v1beta1 || (exports.cloudresourcemanager_v1beta1 = cloudresourcemanager_v1beta1 = {})); + + +/***/ }), + +/***/ 24355: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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$Operations = Resource$Operations; +})(cloudresourcemanager_v2 || (exports.cloudresourcemanager_v2 = cloudresourcemanager_v2 = {})); + + +/***/ }), + +/***/ 33945: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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; + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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_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', + apiVersion: '', + }, options), + params, + 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_v2beta1.Resource$Operations = Resource$Operations; +})(cloudresourcemanager_v2beta1 || (exports.cloudresourcemanager_v2beta1 = cloudresourcemanager_v2beta1 = {})); + + +/***/ }), + +/***/ 84567: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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$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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, 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$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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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$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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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$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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudresourcemanager_v3.Resource$Tagvalues$Tagholds = Resource$Tagvalues$Tagholds; +})(cloudresourcemanager_v3 || (exports.cloudresourcemanager_v3 = cloudresourcemanager_v3 = {})); + + +/***/ }), + +/***/ 69532: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(89994); +Object.defineProperty(exports, "cloudscheduler_v1", ({ enumerable: true, get: function () { return v1_1.cloudscheduler_v1; } })); +const v1beta1_1 = __nccwpck_require__(63522); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 89994: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudscheduler_v1; +(function (cloudscheduler_v1) { + /** + * Cloud Scheduler API + * + * Creates and manages jobs run on a regular recurring schedule. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudscheduler = google.cloudscheduler('v1'); + * ``` + */ + class Cloudscheduler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudscheduler_v1.Cloudscheduler = Cloudscheduler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudscheduler_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + 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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + 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/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudscheduler_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; +})(cloudscheduler_v1 || (exports.cloudscheduler_v1 = cloudscheduler_v1 = {})); + + +/***/ }), + +/***/ 63522: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudscheduler_v1beta1; +(function (cloudscheduler_v1beta1) { + /** + * Cloud Scheduler API + * + * Creates and manages jobs run on a regular recurring schedule. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudscheduler = google.cloudscheduler('v1beta1'); + * ``` + */ + class Cloudscheduler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudscheduler_v1beta1.Cloudscheduler = Cloudscheduler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudscheduler_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudscheduler_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + 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/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 + '/v1beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudscheduler_v1beta1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; +})(cloudscheduler_v1beta1 || (exports.cloudscheduler_v1beta1 = cloudscheduler_v1beta1 = {})); + + +/***/ }), + +/***/ 56916: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(85314); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 85314: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudsearch_v1; +(function (cloudsearch_v1) { + /** + * Cloud Search API + * + * Cloud Search provides cloud-based search capabilities over Google Workspace data. The Cloud Search API allows indexing of non-Google Workspace data into Cloud Search. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudsearch = google.cloudsearch('v1'); + * ``` + */ + class Cloudsearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.debug = new Resource$Debug(this.context); + this.indexing = new Resource$Indexing(this.context); + this.media = new Resource$Media(this.context); + this.operations = new Resource$Operations(this.context); + this.query = new Resource$Query(this.context); + this.settings = new Resource$Settings(this.context); + this.stats = new Resource$Stats(this.context); + this.v1 = new Resource$V1(this.context); + } + } + cloudsearch_v1.Cloudsearch = Cloudsearch; + class Resource$Debug { + constructor(context) { + this.context = context; + this.datasources = new Resource$Debug$Datasources(this.context); + this.identitysources = new Resource$Debug$Identitysources(this.context); + } + } + cloudsearch_v1.Resource$Debug = Resource$Debug; + class Resource$Debug$Datasources { + constructor(context) { + this.context = context; + this.items = new Resource$Debug$Datasources$Items(this.context); + } + } + cloudsearch_v1.Resource$Debug$Datasources = Resource$Debug$Datasources; + class Resource$Debug$Datasources$Items { + constructor(context) { + this.context = context; + this.unmappedids = new Resource$Debug$Datasources$Items$Unmappedids(this.context); + } + checkAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+name}:checkAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchByViewUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+name}/items:searchByViewUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Datasources$Items$Unmappedids = Resource$Debug$Datasources$Items$Unmappedids; + class Resource$Debug$Identitysources { + constructor(context) { + this.context = context; + this.items = new Resource$Debug$Identitysources$Items(this.context); + this.unmappedids = new Resource$Debug$Identitysources$Unmappedids(this.context); + } + } + cloudsearch_v1.Resource$Debug$Identitysources = Resource$Debug$Identitysources; + class Resource$Debug$Identitysources$Items { + constructor(context) { + this.context = context; + } + listForunmappedidentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+parent}/items:forunmappedidentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Identitysources$Items = Resource$Debug$Identitysources$Items; + class Resource$Debug$Identitysources$Unmappedids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Identitysources$Unmappedids = Resource$Debug$Identitysources$Unmappedids; + class Resource$Indexing { + constructor(context) { + this.context = context; + this.datasources = new Resource$Indexing$Datasources(this.context); + } + } + cloudsearch_v1.Resource$Indexing = Resource$Indexing; + class Resource$Indexing$Datasources { + constructor(context) { + this.context = context; + this.items = new Resource$Indexing$Datasources$Items(this.context); + } + deleteSchema(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSchema(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSchema(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Indexing$Datasources = Resource$Indexing$Datasources; + class Resource$Indexing$Datasources$Items { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteQueueItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:deleteQueueItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + index(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:index').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + poll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:poll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + push(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:push').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unreserve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:unreserve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Indexing$Datasources$Items = Resource$Indexing$Datasources$Items; + class Resource$Media { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Media = Resource$Media; + class Resource$Operations { + constructor(context) { + this.context = context; + this.lro = new Resource$Operations$Lro(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Operations = Resource$Operations; + class Resource$Operations$Lro { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/lro').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Operations$Lro = Resource$Operations$Lro; + class Resource$Query { + constructor(context) { + this.context = context; + this.sources = new Resource$Query$Sources(this.context); + } + debugSearch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query:debugSearch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeActivity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query:removeActivity').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Query = Resource$Query; + class Resource$Query$Sources { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Query$Sources = Resource$Query$Sources; + class Resource$Settings { + constructor(context) { + this.context = context; + this.datasources = new Resource$Settings$Datasources(this.context); + this.searchapplications = new Resource$Settings$Searchapplications(this.context); + } + getCustomer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/customer').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCustomer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/customer').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Settings = Resource$Settings; + class Resource$Settings$Datasources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Settings$Datasources = Resource$Settings$Datasources; + class Resource$Settings$Searchapplications { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Settings$Searchapplications = Resource$Settings$Searchapplications; + class Resource$Stats { + constructor(context) { + this.context = context; + this.index = new Resource$Stats$Index(this.context); + this.query = new Resource$Stats$Query(this.context); + this.session = new Resource$Stats$Session(this.context); + this.user = new Resource$Stats$User(this.context); + } + getIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/index').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSearchapplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/searchapplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSession(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/session').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/user').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats = Resource$Stats; + class Resource$Stats$Index { + constructor(context) { + this.context = context; + this.datasources = new Resource$Stats$Index$Datasources(this.context); + } + } + cloudsearch_v1.Resource$Stats$Index = Resource$Stats$Index; + class Resource$Stats$Index$Datasources { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/index/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Index$Datasources = Resource$Stats$Index$Datasources; + class Resource$Stats$Query { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$Query$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$Query = Resource$Stats$Query; + class Resource$Stats$Query$Searchapplications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/query/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Query$Searchapplications = Resource$Stats$Query$Searchapplications; + class Resource$Stats$Session { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$Session$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$Session = Resource$Stats$Session; + class Resource$Stats$Session$Searchapplications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/session/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Session$Searchapplications = Resource$Stats$Session$Searchapplications; + class Resource$Stats$User { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$User$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$User = Resource$Stats$User; + class Resource$Stats$User$Searchapplications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/user/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$User$Searchapplications = Resource$Stats$User$Searchapplications; + class Resource$V1 { + constructor(context) { + this.context = context; + } + initializeCustomer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1:initializeCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$V1 = Resource$V1; +})(cloudsearch_v1 || (exports.cloudsearch_v1 = cloudsearch_v1 = {})); + + +/***/ }), + +/***/ 85465: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(5748); +Object.defineProperty(exports, "cloudshell_v1", ({ enumerable: true, get: function () { return v1_1.cloudshell_v1; } })); +const v1alpha1_1 = __nccwpck_require__(70457); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 5748: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudshell_v1; +(function (cloudshell_v1) { + /** + * Cloud Shell API + * + * Allows users to start, configure, and connect to interactive shell sessions running in the cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudshell = google.cloudshell('v1'); + * ``` + */ + class Cloudshell { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.users = new Resource$Users(this.context); + } + } + cloudshell_v1.Cloudshell = Cloudshell; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudshell_v1.Resource$Operations = Resource$Operations; + class Resource$Users { + constructor(context) { + this.context = context; + this.environments = new Resource$Users$Environments(this.context); + } + } + cloudshell_v1.Resource$Users = Resource$Users; + class Resource$Users$Environments { + constructor(context) { + this.context = context; + } + addPublicKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+environment}:addPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['environment'], + pathParams: ['environment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + authorize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removePublicKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+environment}:removePublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['environment'], + pathParams: ['environment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudshell_v1.Resource$Users$Environments = Resource$Users$Environments; +})(cloudshell_v1 || (exports.cloudshell_v1 = cloudshell_v1 = {})); + + +/***/ }), + +/***/ 70457: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudshell_v1alpha1; +(function (cloudshell_v1alpha1) { + /** + * Cloud Shell API + * + * Allows users to start, configure, and connect to interactive shell sessions running in the cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudshell = google.cloudshell('v1alpha1'); + * ``` + */ + class Cloudshell { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + cloudshell_v1alpha1.Cloudshell = Cloudshell; + class Resource$Users { + constructor(context) { + this.context = context; + this.environments = new Resource$Users$Environments(this.context); + } + } + cloudshell_v1alpha1.Resource$Users = Resource$Users; + class Resource$Users$Environments { + constructor(context) { + this.context = context; + this.publicKeys = new Resource$Users$Environments$Publickeys(this.context); + } + authorize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudshell_v1alpha1.Resource$Users$Environments = Resource$Users$Environments; + class Resource$Users$Environments$Publickeys { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/publicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudshell_v1alpha1.Resource$Users$Environments$Publickeys = Resource$Users$Environments$Publickeys; +})(cloudshell_v1alpha1 || (exports.cloudshell_v1alpha1 = cloudshell_v1alpha1 = {})); + + +/***/ }), + +/***/ 94148: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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.cloudsupport_v2 = exports.auth = exports.cloudsupport = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(40524); +const v2_1 = __nccwpck_require__(32833); +Object.defineProperty(exports, "cloudsupport_v2", ({ enumerable: true, get: function () { return v2_1.cloudsupport_v2; } })); +const v2beta_1 = __nccwpck_require__(38667); +Object.defineProperty(exports, "cloudsupport_v2beta", ({ enumerable: true, get: function () { return v2beta_1.cloudsupport_v2beta; } })); +exports.VERSIONS = { + v2: v2_1.cloudsupport_v2.Cloudsupport, + 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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 32833: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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__(40524); +var cloudsupport_v2; +(function (cloudsupport_v2) { + /** + * 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('v2'); + * ``` + */ + 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_v2.Cloudsupport = Cloudsupport; + class Resource$Caseclassifications { + 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://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/caseClassifications:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsupport_v2.Resource$Caseclassifications = Resource$Caseclassifications; + class Resource$Cases { + constructor(context) { + this.context = context; + this.attachments = new Resource$Cases$Attachments(this.context); + this.comments = new Resource$Cases$Comments(this.context); + } + close(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + escalate(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}:escalate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/cases:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_v2.Resource$Cases = Resource$Cases; + class Resource$Cases$Attachments { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_v2.Resource$Cases$Attachments = Resource$Cases$Attachments; + class Resource$Cases$Comments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_v2.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 parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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 + '/v2/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v2/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsupport_v2.Resource$Media = Resource$Media; +})(cloudsupport_v2 || (exports.cloudsupport_v2 = cloudsupport_v2 = {})); + + +/***/ }), + +/***/ 38667: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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; + } + 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://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/caseClassifications:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || {}); + 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/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + escalate(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}:escalate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/cases:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + showFeed(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:showFeed').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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 = Resource$Cases; + class Resource$Cases$Attachments { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + 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$Attachments = Resource$Cases$Attachments; + class Resource$Cases$Comments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudsupport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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 parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsupport_v2beta.Resource$Media = Resource$Media; +})(cloudsupport_v2beta || (exports.cloudsupport_v2beta = cloudsupport_v2beta = {})); + + +/***/ }), + +/***/ 95235: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v2_1 = __nccwpck_require__(21294); +Object.defineProperty(exports, "cloudtasks_v2", ({ enumerable: true, get: function () { return v2_1.cloudtasks_v2; } })); +const v2beta2_1 = __nccwpck_require__(19041); +Object.defineProperty(exports, "cloudtasks_v2beta2", ({ enumerable: true, get: function () { return v2beta2_1.cloudtasks_v2beta2; } })); +const v2beta3_1 = __nccwpck_require__(61800); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 21294: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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 || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getCmekConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCmekConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } + buffer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['queue', 'taskId'], + pathParams: ['queue', 'taskId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2 || (exports.cloudtasks_v2 = cloudtasks_v2 = {})); + + +/***/ }), + +/***/ 19041: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +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', + apiVersion: '', + }, 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) { + let params = (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 + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getCmekConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCmekConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + 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$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 + '/v2beta2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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 + '/v2beta2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2beta2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + buffer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['queue', 'taskId'], + pathParams: ['queue', 'taskId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cancelLease(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}:cancelLease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + lease(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/tasks:lease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + renewLease(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v2beta2/{+name}:renewLease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2beta2 || (exports.cloudtasks_v2beta2 = cloudtasks_v2beta2 = {})); + + +/***/ }), + +/***/ 61800: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +var cloudtasks_v2beta3; +(function (cloudtasks_v2beta3) { + /** + * Cloud Tasks API + * + * Manages the execution of large numbers of distributed requests. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudtasks = google.cloudtasks('v2beta3'); + * ``` + */ + class Cloudtasks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtasks_v2beta3.Cloudtasks = Cloudtasks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudtasks_v2beta3.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.queues = new Resource$Projects$Locations$Queues(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getCmekConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCmekConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + purge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } + buffer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['queue', 'taskId'], + pathParams: ['queue', 'taskId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2beta3 || (exports.cloudtasks_v2beta3 = cloudtasks_v2beta3 = {})); + + +/***/ }), + +/***/ 15559: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(26029); +Object.defineProperty(exports, "cloudtrace_v1", ({ enumerable: true, get: function () { return v1_1.cloudtrace_v1; } })); +const v2_1 = __nccwpck_require__(86349); +Object.defineProperty(exports, "cloudtrace_v2", ({ enumerable: true, get: function () { return v2_1.cloudtrace_v2; } })); +const v2beta1_1 = __nccwpck_require__(4268); +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__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 26029: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + } + 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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/traces/{traceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['projectId', 'traceId'], + pathParams: ['projectId', 'traceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + } + cloudtrace_v1.Resource$Projects$Traces = Resource$Projects$Traces; +})(cloudtrace_v1 || (exports.cloudtrace_v1 = cloudtrace_v1 = {})); + + +/***/ }), + +/***/ 86349: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/traces:batchWrite').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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_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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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_v2.Resource$Projects$Traces$Spans = Resource$Projects$Traces$Spans; +})(cloudtrace_v2 || (exports.cloudtrace_v2 = cloudtrace_v2 = {})); + + +/***/ }), + +/***/ 4268: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + 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 = cloudtrace_v2beta1 = {})); + + +/***/ }), + +/***/ 34999: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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__(40524); +const v1_1 = __nccwpck_require__(29383); +Object.defineProperty(exports, "composer_v1", ({ enumerable: true, get: function () { return v1_1.composer_v1; } })); +const v1beta1_1 = __nccwpck_require__(47216); +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 = __nccwpck_require__(40524); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 29383: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(40524); +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; + this.userWorkloadsConfigMaps = + new Resource$Projects$Locations$Environments$Userworkloadsconfigmaps(this.context); + this.userWorkloadsSecrets = + new Resource$Projects$Locations$Environments$Userworkloadssecrets(this.context); + this.workloads = new Resource$Projects$Locations$Environments$Workloads(this.context); + } + checkUpgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+environment}:checkUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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 + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + databaseFailover(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+environment}:databaseFailover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + executeAirflowCommand(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+environment}:executeAirflowCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + fetchDatabaseProperties(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+environment}:fetchDatabaseProperties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + loadSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+environment}:loadSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pollAirflowCommand(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+environment}:pollAirflowCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + saveSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+environment}:saveSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + stopAirflowCommand(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+environment}:stopAirflowCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + composer_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; + class Resource$Projects$Locations$Environments$Userworkloadsconfigmaps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/userWorkloadsConfigMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/userWorkloadsConfigMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + composer_v1.Resource$Projects$Locations$Environments$Userworkloadsconfigmaps = Resource$Projects$Locations$Environments$Userworkloadsconfigmaps; + class Resource$Projects$Locations$Environments$Userworkloadssecrets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/userWorkloadsSecrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/userWorkloadsSecrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + composer_v1.Resource$Projects$Locations$Environments$Userworkloadssecrets = Resource$Projects$Locations$Environments$Userworkloadssecrets; + class Resource$Projects$Locations$Environments$Workloads { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_v1.Resource$Projects$Locations$Environments$Workloads = Resource$Projects$Locations$Environments$Workloads; + 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 + '/v1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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_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 || {}); + 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + composer_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(composer_v1 || (exports.composer_v1 = composer_v1 = {})); + + +/***/ }), + +/***/ 47216: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.composer_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(40524); +var composer_v1beta1; +(function (composer_v1beta1) { + /** + * Cloud Composer API + * + * Manages Apache Airflow environments on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const composer = google.composer('v1beta1'); + * ``` + */ + class Composer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + composer_v1beta1.Composer = Composer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + composer_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.environments = new Resource$Projects$Locations$Environments(this.context); + this.imageVersions = new Resource$Projects$Locations$Imageversions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + composer_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Environments { + constructor(context) { + this.context = context; + this.userWorkloadsConfigMaps = + new Resource$Projects$Locations$Environments$Userworkloadsconfigmaps(this.context); + this.userWorkloadsSecrets = + new Resource$Projects$Locations$Environments$Userworkloadssecrets(this.context); + this.workloads = new Resource$Projects$Locations$Environments$Workloads(this.context); + } + checkUpgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+environment}:checkUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + databaseFailover(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+environment}:databaseFailover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + executeAirflowCommand(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+environment}:executeAirflowCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + fetchDatabaseProperties(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+environment}:fetchDatabaseProperties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + loadSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+environment}:loadSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pollAirflowCommand(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+environment}:pollAirflowCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + restartWebServer(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:restartWebServer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + saveSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+environment}:saveSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + stopAirflowCommand(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+environment}:stopAirflowCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + } + composer_v1beta1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; + class Resource$Projects$Locations$Environments$Userworkloadsconfigmaps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/userWorkloadsConfigMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/userWorkloadsConfigMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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$Userworkloadsconfigmaps = Resource$Projects$Locations$Environments$Userworkloadsconfigmaps; + class Resource$Projects$Locations$Environments$Userworkloadssecrets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/userWorkloadsSecrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/userWorkloadsSecrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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$Userworkloadssecrets = Resource$Projects$Locations$Environments$Userworkloadssecrets; + class Resource$Projects$Locations$Environments$Workloads { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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$Environments$Workloads = Resource$Projects$Locations$Environments$Workloads; + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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', + apiVersion: '', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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$Operations = Resource$Projects$Locations$Operations; +})(composer_v1beta1 || (exports.composer_v1beta1 = composer_v1beta1 = {})); + + +/***/ }), + +/***/ 88951: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.diskSettings = new Resource$Disksettings(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.instantSnapshotGroups = new Resource$Instantsnapshotgroups(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.networkProfiles = new Resource$Networkprofiles(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.regionDiskSettings = new Resource$Regiondisksettings(this.context); + this.regionDiskTypes = new Resource$Regiondisktypes(this.context); + this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); + this.regionHealthCheckServices = new Resource$Regionhealthcheckservices(this.context); + this.regionInstanceGroupManagerResizeRequests = + new Resource$Regioninstancegroupmanagerresizerequests(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.regionInstantSnapshotGroups = + new Resource$Regioninstantsnapshotgroups(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.regionSnapshots = new Resource$Regionsnapshots(this.context); + this.regionSnapshotSettings = new Resource$Regionsnapshotsettings(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.regionZones = new Resource$Regionzones(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.snapshotSettings = new Resource$Snapshotsettings(this.context); + this.sslCertificates = new Resource$Sslcertificates(this.context); + this.sslPolicies = new Resource$Sslpolicies(this.context); + this.storagePools = new Resource$Storagepools(this.context); + this.storagePoolTypes = new Resource$Storagepooltypes(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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_alpha.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Addresses = Resource$Addresses; + class Resource$Autoscalers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, 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_alpha.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.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/alpha/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Disks = Resource$Disks; + class Resource$Disksettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/diskSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/diskSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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_alpha.Resource$Disksettings = Resource$Disksettings; + class Resource$Disktypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_alpha.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/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + addPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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}/addPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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}/getPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssociations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + patchPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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}/patchPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + removePacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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}/removePacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Firewallpolicies = Resource$Firewallpolicies; + class Resource$Firewalls { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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}/futureReservations/{futureReservation}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getOwnerInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/getOwnerInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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/alpha/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'family'], + pathParams: ['family', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deprecate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagerresizerequests { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Instancegroupmanagerresizerequests = Resource$Instancegroupmanagerresizerequests; + class Resource$Instancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + resumeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + stopInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + suspendInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; + } + addInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + addNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/addNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + attachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/deleteNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterfaceName'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getPartnerMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/getPartnerMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listReferrers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + patchPartnerMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/patchPartnerMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + performMaintenance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendDiagnosticInterrupt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMachineType(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setName(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setScheduling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suspend(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Instances = Resource$Instances; + class Resource$Instancesettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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_alpha.Resource$Instancesettings = Resource$Instancesettings; + 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/alpha/projects/{project}/aggregated/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/alpha/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Instantsnapshotgroups { + 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}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshotGroup'], + pathParams: ['instantSnapshotGroup', '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}/instantSnapshotGroups/{instantSnapshotGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshotGroup'], + pathParams: ['instantSnapshotGroup', '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}/instantSnapshotGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/instantSnapshotGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_alpha.Resource$Instantsnapshotgroups = Resource$Instantsnapshotgroups; + class Resource$Instantsnapshots { + 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/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Instantsnapshots = Resource$Instantsnapshots; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$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/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/alpha/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'interconnectRemoteLocation'], + pathParams: ['interconnectRemoteLocation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectRemoteLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Interconnectremotelocations = Resource$Interconnectremotelocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/alpha/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getMacsecConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}/getMacsecConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.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/alpha/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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', + apiVersion: '', + }, 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/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/alpha/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.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/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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', + apiVersion: '', + }, options), + params, + 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}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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_alpha.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/alpha/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + addPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + patchAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + patchPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + removePacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; + class Resource$Networkprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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/networkProfiles/{networkProfile}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkProfile'], + pathParams: ['networkProfile', '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/networkProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Networkprofiles = Resource$Networkprofiles; + class Resource$Networks { + constructor(context) { + this.context = context; + } + addPeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listIpAddresses(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listIpAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listIpOwners(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { + constructor(context) { + this.context = context; + } + addNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + performMaintenance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + copyRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssociations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { + constructor(context) { + this.context = context; + } + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCloudArmorTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/setCloudArmorTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDefaultServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setManagedProtectionTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setManagedProtectionTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Projects = Resource$Projects; + class Resource$Publicadvertisedprefixes { + constructor(context) { + this.context = context; + } + announce(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; + class Resource$Regionautoscalers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + calculateCancellationFee(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/calculateCancellationFee').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + 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}/regions/{region}/commitments/{commitment}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisksettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/diskSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/diskSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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_alpha.Resource$Regiondisksettings = Resource$Regiondisksettings; + class Resource$Regiondisktypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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_alpha.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninstancegroupmanagerresizerequests { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'region', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'region', + 'resizeRequest', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_alpha.Resource$Regioninstancegroupmanagerresizerequests = Resource$Regioninstancegroupmanagerresizerequests; + class Resource$Regioninstancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + resumeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suspendInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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_alpha.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { + constructor(context) { + this.context = context; + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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_alpha.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regioninstancetemplates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_alpha.Resource$Regioninstancetemplates = Resource$Regioninstancetemplates; + class Resource$Regioninstantsnapshotgroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshotGroup'], + pathParams: ['instantSnapshotGroup', '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}/instantSnapshotGroups/{instantSnapshotGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshotGroup'], + pathParams: ['instantSnapshotGroup', '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}/instantSnapshotGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/instantSnapshotGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_alpha.Resource$Regioninstantsnapshotgroups = Resource$Regioninstantsnapshotgroups; + class Resource$Regioninstantsnapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Regioninstantsnapshots = Resource$Regioninstantsnapshots; + class Resource$Regionnetworkendpointgroups { + constructor(context) { + this.context = context; + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'network'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + patchAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$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 = + {}; + options = {}; + } + if (typeof 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/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/notificationEndpoints/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; + class Resource$Regionoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regions = Resource$Regions; + class Resource$Regionsecuritypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; + class Resource$Regionsnapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'snapshot'], + pathParams: ['project', 'region', 'snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'snapshot'], + pathParams: ['project', 'region', 'snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Regionsnapshots = Resource$Regionsnapshots; + class Resource$Regionsnapshotsettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/snapshotSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/snapshotSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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_alpha.Resource$Regionsnapshotsettings = Resource$Regionsnapshotsettings; + class Resource$Regionsslcertificates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regionsslpolicies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionsslpolicies = Resource$Regionsslpolicies; + class Resource$Regiontargethttpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regiontargettcpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Regiontargettcpproxies = Resource$Regiontargettcpproxies; + class Resource$Regionurlmaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Regionzones { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_alpha.Resource$Regionzones = Resource$Regionzones; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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); + } + } + deleteNamedSet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/deleteNamedSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + deleteRoutePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/deleteRoutePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getNamedSet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/getNamedSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getNatIpInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/getNatIpInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getRoutePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/getRoutePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listBgpRoutes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/listBgpRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listNamedSets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/listNamedSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listRoutePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/listRoutePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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', + apiVersion: '', + }, 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); + } + } + patchNamedSet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/patchNamedSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + patchRoutePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/patchRoutePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, 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); + } + } + updateNamedSet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/updateNamedSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + updateRoutePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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}/updateRoutePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Routers = Resource$Routers; + class Resource$Routes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Serviceattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Serviceattachments = Resource$Serviceattachments; + class Resource$Snapshots { + 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/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Snapshots = Resource$Snapshots; + class Resource$Snapshotsettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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/snapshotSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/snapshotSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Snapshotsettings = Resource$Snapshotsettings; + class Resource$Sslcertificates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + 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/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Storagepools { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/storagePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', '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}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/storagePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listDisks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/storagePools/{storagePool}/listDisks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Storagepools = Resource$Storagepools; + class Resource$Storagepooltypes { + 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/storagePoolTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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}/zones/{zone}/storagePoolTypes/{storagePoolType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'storagePoolType'], + pathParams: ['project', 'storagePoolType', '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}/storagePoolTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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_alpha.Resource$Storagepooltypes = Resource$Storagepooltypes; + class Resource$Subnetworks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Subnetworks = Resource$Subnetworks; + class Resource$Targetgrpcproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; + class Resource$Targethttpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; + } + addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Targetpools = Resource$Targetpools; + class Resource$Targetsslproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + 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/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$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', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Vpngateways = Resource$Vpngateways; + class Resource$Vpntunnels { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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$Vpntunnels = Resource$Vpntunnels; + class Resource$Zoneoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_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', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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_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', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Zones = Resource$Zones; +})(compute_alpha || (exports.compute_alpha = compute_alpha = {})); + + +/***/ }), + +/***/ 66624: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__(40524); +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.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.regionZones = new Resource$Regionzones(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.snapshotSettings = new Resource$Snapshotsettings(this.context); + this.sslCertificates = new Resource$Sslcertificates(this.context); + this.sslPolicies = new Resource$Sslpolicies(this.context); + this.storagePools = new Resource$Storagepools(this.context); + this.storagePoolTypes = new Resource$Storagepooltypes(this.context); + this.subnetworks = new Resource$Subnetworks(this.context); + this.targetGrpcProxies = new Resource$Targetgrpcproxies(this.context); + this.targetHttpProxies = new Resource$Targethttpproxies(this.context); + this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); + this.targetInstances = new Resource$Targetinstances(this.context); + this.targetPools = new Resource$Targetpools(this.context); + this.targetSslProxies = new Resource$Targetsslproxies(this.context); + this.targetTcpProxies = new Resource$Targettcpproxies(this.context); + this.targetVpnGateways = new Resource$Targetvpngateways(this.context); + this.urlMaps = new Resource$Urlmaps(this.context); + this.vpnGateways = new Resource$Vpngateways(this.context); + this.vpnTunnels = new Resource$Vpntunnels(this.context); + this.zoneOperations = new Resource$Zoneoperations(this.context); + this.zones = new Resource$Zones(this.context); + } + } + compute_beta.Compute = Compute; + class Resource$Acceleratortypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Addresses = Resource$Addresses; + class Resource$Autoscalers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Backendbuckets = Resource$Backendbuckets; + class Resource$Backendservices { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Disks = Resource$Disks; + class Resource$Disktypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + addPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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}/addPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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}/getPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssociations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + patchPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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}/patchPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + removePacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + 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}/removePacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Firewallpolicies = Resource$Firewallpolicies; + class Resource$Firewalls { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Futurereservations { + 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/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/beta/projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globalforwardingrules = Resource$Globalforwardingrules; + class Resource$Globalnetworkendpointgroups { + constructor(context) { + this.context = context; + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Globalorganizationoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Globalpublicdelegatedprefixes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; + class Resource$Healthchecks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Imagefamilyviews { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'family'], + pathParams: ['family', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Imagefamilyviews = Resource$Imagefamilyviews; + class Resource$Images { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deprecate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagerresizerequests { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instancegroupmanagerresizerequests = Resource$Instancegroupmanagerresizerequests; + class Resource$Instancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + resumeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + stopInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + suspendInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; + } + addInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + attachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getPartnerMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/getPartnerMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listReferrers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + patchPartnerMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/patchPartnerMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + performMaintenance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendDiagnosticInterrupt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMachineType(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setName(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setScheduling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suspend(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instances = Resource$Instances; + class Resource$Instancesettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instancesettings = Resource$Instancesettings; + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Instantsnapshots { + 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/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instantsnapshots = Resource$Instantsnapshots; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Interconnectattachments = Resource$Interconnectattachments; + class Resource$Interconnectlocations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnectremotelocations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'interconnectRemoteLocation'], + pathParams: ['interconnectRemoteLocation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnectRemoteLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Interconnectremotelocations = Resource$Interconnectremotelocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getMacsecConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}/getMacsecConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Licensecodes = Resource$Licensecodes; + class Resource$Licenses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Licenses = Resource$Licenses; + class Resource$Machineimages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Machineimages = Resource$Machineimages; + class Resource$Machinetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networkattachments = Resource$Networkattachments; + class Resource$Networkedgesecurityservices { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networkedgesecurityservices = Resource$Networkedgesecurityservices; + class Resource$Networkendpointgroups { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + addPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === '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}/addPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === '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}/getPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + patchPacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === '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}/patchPacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + removePacketMirroringRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === '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}/removePacketMirroringRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; + class Resource$Networks { + constructor(context) { + this.context = context; + } + addPeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { + constructor(context) { + this.context = context; + } + addNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + performMaintenance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Nodetypes = Resource$Nodetypes; + class Resource$Organizationsecuritypolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + copyRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssociations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { + constructor(context) { + this.context = context; + } + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCloudArmorTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/setCloudArmorTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setManagedProtectionTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/setManagedProtectionTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Projects = Resource$Projects; + class Resource$Publicadvertisedprefixes { + constructor(context) { + this.context = context; + } + 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/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + 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/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, 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/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; + class Resource$Regionautoscalers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionautoscalers = Resource$Regionautoscalers; + class Resource$Regionbackendservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateReservations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioncommitments = Resource$Regioncommitments; + class Resource$Regiondisks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regionhealthcheckservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninstancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + resumeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suspendInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { + constructor(context) { + this.context = context; + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regioninstancetemplates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstancetemplates = Resource$Regioninstancetemplates; + class Resource$Regioninstantsnapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstantsnapshots = Resource$Regioninstantsnapshots; + class Resource$Regionnetworkendpointgroups { + constructor(context) { + this.context = context; + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; + class Resource$Regionnetworkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'network'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; + class Resource$Regionnotificationendpoints { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; + class Resource$Regionoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regions = Resource$Regions; + class Resource$Regionsecuritypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, 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); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, 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); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; + class Resource$Regionsslcertificates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regionsslpolicies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionsslpolicies = Resource$Regionsslpolicies; + class Resource$Regiontargethttpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regiontargettcpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiontargettcpproxies = Resource$Regiontargettcpproxies; + class Resource$Regionurlmaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Regionzones { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionzones = Resource$Regionzones; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, 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); + } + } + deleteRoutePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getNatIpInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNatIpInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + getRoutePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getRoutePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listBgpRoutes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/listBgpRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + listRoutePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/listRoutePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + preview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { +